Intro to AngularJS

Kent C. Dodds

@kentcdodds
+kentcdodds
github.com/kentcdodds

Attribution

Big thanks to Dave Geddes for the original slides and ng-workshop repo!

@geddski   |   +Dave Geddes   |   github.com/geddski


Some graphics from the ng-conf keynote:  http://goo.gl/hnjLZk

Miško Hevery & Brad Green 

Other Frameworks

AngularJS is not alone

And more...

What/Why AngularJS?


IWeb


 HTML?


IHTML!


"Angular is not a framework... it's a better browser"

-Miško Hevery

How popular is it?


Crazy Popular!


Trend Graph: http://goo.gl/eidreQ

Strong Community

Let's get Started!

Install:

nodejs.org


git-scm.com

LET'S GET STARTED!

Run

  1. $ git clone https://github.com/kentcdodds/ng-workshop.git
  2. $ cd ng-workshop
  3. $ git checkout angularfire
  4. $ npm install
  5. $ git checkout master
  6. $ npm run start
  7. $ open http://localhost:8080

You're browser should be showing you "ng-workshop" at this point :-) You're ready to get started!

Templates


http://docs.angularjs.org/guide/expression

Let's do it!


run: git checkout templates -f

Modules


http://docs.angularjs.org/guide/module

Let's Do it!


run: git checkout modules -f

Directives


Directives

ng-repeat
ng-view
ng-show
ng-hide
ng-click
etc.

http://docs.angularjs.org/guide/directive

Let's Do It!


run: git checkout directives -f

Let's Make Our Own!


run: git checkout directives-custom -f

Filters


date, currency, number, etc...
http://docs.angularjs.org/guide/filter

Let's Do It!


run: git checkout filters -f

Let's Make Our Own!


run: git checkout filters-custom -f

Controllers


Controllers + Scope


http://docs.angularjs.org/guide/controller

Let's Do It!


run: git checkout controllers -f

Services


http://docs.angularjs.org/guide/dev_guide.services.understanding_services
 

Services

$http
$animate
$location
$compile
$log
etc.

Let's Do it!


run: git checkout services -f

Third-Party-Modules


AngularFire


Let's Do It!


run: git checkout angularfire -f

Homework


http://angularjs.org
http://docs.angularjs.org/guide/overview
http://egghead.io


Build Things

Thanks!


Kent C. Dodds

@kentcdodds
+KentCDodds
github.com/kentcdodds