Beruflich Dokumente
Kultur Dokumente
Click to edit
Master subtitle
style
02 | AngularJS
Helen Zeng | Startup Developer Evangelist
Steven Edouard | Startup Developer Evangelist
Module Overview
Whats a front end framework?
Directives
Modules & Controllers
Models & Data Binding
Routing
Click to edit
Master subtitle
style
DEMO
Hello World
Click to edit
Master subtitle
style
Directives
Directives
Angular-only HTML attributes
Attaches some specific behavior to the element
Usually begins with ng- or `data-ng`
Click to edit
Master subtitle
style
Modules
A container for your application
var myModule = angular.module(myApp, [ ]);
Controllers
Contains the business logic for a part of your
application
Sets up your data to be viewed in your HTML
myModule.controller(myController, function($scope)
{
});
Dependency Injection
How we specify the dependencies that an Angular
component will need.
Templates
The Angularized HTML were created
Used to render the View (what the end-user will see)
DEMO
Click to edit
Master subtitle
style
$scope
Links your controller to your view (what the user
sees)
Created through as an injectable parameter in
controllers
Configured within controller logic
Contains the models for our data
DEMO
Click to edit
Master subtitle
style
Routing
Create app with multiple views
Must pass `ngRoute` module to app
Detects url and uses the appropriate template
Creating Partials
Sections of the page to be rendered as-needed
Rendered inside ng-view
DEMO
2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered
trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of
Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a
commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT
MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.