Coder Social home page Coder Social logo

wdi6-angular-intro's Introduction

Intro to AngularJS in seven steps

##Goals

  • Learn how to build a basic Angular App
  • Understand Angular MVVM and data-binding
  • Confidently use Angular expressions and directives
  • Learn how to create Angular controllers

##Intro

How did we get here?

##Step 1 - setup

Fork:

https://github.com/aikalima/wdi6-angular-intro

... and clone to your local workspace. cd into workspace.

Fire up webserver:

 node web-server.js

Got to:

http://localhost:8000/app/index.html

##Step 2 - expressions

git checkout two

Include angular library in index.html:

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>

ng-app: auto-bootstrap an angular application

http://docs.angularjs.org/api/ng/directive/ngApp	

Angular expressions:

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

Data binding:

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

Where are my templates?

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

##Step 3 - directives and filter

Directives

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

http://www.cheatography.com/proloser/cheat-sheets/angularjs/

Filter

http://docs.angularjs.org/api/ng/filter/filter

##Step 4 - loops

ngRepeat

http://docs.angularjs.org/api/ng/directive/ngRepeat

Filter on data sets

##Step 5 - controller

Where's the JavaScript? Controller ...

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

Scope. The glue between model and view.

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

##Step 6 - events

Events

http://tutorials.jenkov.com/angularjs/events.html

Watching models

http://docs.angularjs.org/api/ng/type/$rootScope.Scope

layout example: ng-class

http://docs.angularjs.org/api/ng/directive/ngClass

##Step 7 - modules

Modules and module injection

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

Custom Modules: A date fomatter

wdi6-angular-intro's People

Contributors

aikalima avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.