The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
###Intro Ruby
###Ruby Methods
Creating an App using Angular | |
Step 1.index.html ng-app html tag: | |
example: | |
<html lang="en" ng-app="appName">\ | |
Step 2. Define your controllers in app.js. |
##Creating an App using Angular
ng-*
(ex. an angular-style href
is called ng-href
)ng-*
attributes are called directives
, and they allow us to add behavior to HTML. Directive HTML tags tell Angular to run or reference Angular codeng-app
turns ordinary HTML into an Angular application. You will need Angular loaded into your project (via a package manager or CDN) for this to workng-controller
connects a controller (a JavaScript file containing logic) to a section of our application.ng-model
ties together (binds) values in HTML and data in the controller.###Express
npm
to initialize a node project###Params and Routes