AngularJs Crash Course

25
@baiolo Meet ...And stay alive !

Transcript of AngularJs Crash Course

Page 1: AngularJs Crash Course

@baiolo

Meet

...And stay alive !

Page 2: AngularJs Crash Course

Meet… And stay alive !

Why:●Used as mobile app engine.●Used as web app engine.●...We saw it on the run, now we

take time to see the basics.

Page 3: AngularJs Crash Course

Meet… And stay alive !PAY ATTENTION!

We are going to see the basics, NOT the best

practices !

Page 4: AngularJs Crash Course

Meet… And stay alive !

What:One acronym, SPA, aka

Single Page Application

A single-page application (SPA) is a web application or web site that fits on a single web page with the goal of providing a more fluid user experience akin to a desktop application. In a SPA, either all necessary code – HTML, JavaScript, and CSS – is retrieved with a single page load,[1] or the appropriate resources are dynamically loaded and added to the page as necessary, usually in response to user actions. The page does not reload at any point in the process, nor does control transfer to another page, although modern web technologies… bla bla bla… (Wikipedia)

Page 5: AngularJs Crash Course

Meet… And stay alive !

Main pattern: MVC

Page 6: AngularJs Crash Course

Meet… And stay alive !

Packages:●Routing●Templating●Two-Way data binding

new!

Page 7: AngularJs Crash Course

Meet… And stay alive !

Two-Way data binding:Automatic updates between model and views...with the controller in the middle :)

Page 8: AngularJs Crash Course

Meet… And stay alive !Old skool New kid(s) on

the block !

Page 9: AngularJs Crash Course

Meet… And stay alive !

Some alternatives:● Knockout● Ember● JsViews● Can.js● Ractive

Page 10: AngularJs Crash Course

Meet… And stay alive !A more in deepth view of the components... or ancestors:

● Underscore● Backbone● jQuery● AMD● Promises● Handlebars

Page 11: AngularJs Crash Course

Meet… And stay alive !OK… That’s cool, Hands on code !

Code taken from:https://github.com/curran/screencasts/tree/gh-pages/

introToAngular

Page 12: AngularJs Crash Course

Meet… And stay alive !Take 1 - Old Skoooooooooool !

Page 13: AngularJs Crash Course

Meet… And stay alive !Take 2 - jQuery era...

Page 14: AngularJs Crash Course

Meet… And stay alive !Take 3 - Welcome Angular !

Page 15: AngularJs Crash Course

Meet… And stay alive !Ok, one step further...Global controller

Page 16: AngularJs Crash Course

Meet… And stay alive !Introducing modules !

Page 17: AngularJs Crash Course

Meet… And stay alive !Introducing lists...

Page 18: AngularJs Crash Course

Meet… And stay alive !OMG Forms !

Page 19: AngularJs Crash Course

Meet… And stay alive !Give me it ! (remotely)

Page 20: AngularJs Crash Course

Meet… And stay alive !Images (the AngularJS way)

Page 21: AngularJs Crash Course

Meet… And stay alive !Ok, let’s take the time machine...

Page 22: AngularJs Crash Course

Meet… And stay alive !We saw the basics, there are tons of other things out there, where should we look ?

It may sound strange, but official documentation is the starting point !

Page 23: AngularJs Crash Course

Meet… And stay alive !API Reference too...

Page 24: AngularJs Crash Course

Meet… And stay alive !And the last two spots for a right AngularJS knowledge:

For the coding style & best parctices

For test unit & quality stuff

Page 25: AngularJs Crash Course

Meet… And stay alive !