AngularJS basics презентация
Содержание
- 2. Agile practitioner Agile practitioner Trainer Public speaker Extensive AngularJS user
- 3. Agenda Intro View and controller Directives and filters Two-way data binding
- 4. Intro Framework overview. Main concepts. Bootstrapping.
- 6. MVC First introduced in 1979 by Trygve Reenskaug. Splits the presentation
- 7. Inversion of Control
- 8. Bootstrapping Template
- 9. View and controller Controllers. Templates. Scopes.
- 10. Angular view <html ng-app="phonecatApp"> … <body ng-controller="PhoneListCtrl"> <ul> <li
- 12. Angular controller Template
- 13. Directives and filters Directives. ngRepeat. Filters.
- 14. Look and feel <div ng-switch-when="forked"> <div class="span1 type"><i ng-class="event.icon"></i></div> <div class="span11">
- 15. Forms of directives Preferred Element: <ng-include></ng-include> Argument: <input ng-model="data"></input> also Class:
- 16. ngRepeat <ul> <li ng-repeat="friend in friends"> [{{$index + 1}}] {{friend.name}}
- 17. Filter <ul> <li ng-repeat="friend in friends | filter:'query' "> [{{$index
- 18. Standard filters currency date filter json limitTo
- 19. Practice #1
- 20. Task – goo.gl/grrTPW Create an angular application (bootstrap with ng-app). Create
- 21. Two-way data binding ngModel
- 22. ngModel <input ng-model="model.prop"></input>
- 23. Practice #2
- 24. Task – goo.gl/CoqXPy Update the application so that the filtering params
- 25. Event handlers Calling events from the view
- 26. Event handlers Template
- 27. RESTful services and $resource HTTP and RESTful services. Injecting services.
- 29. Injecting services angular.module('myApp') .service('myService', function($resource) { ... }) .controller('MyController',
- 30. Practice #3
- 31. Task – goo.gl/75hgJq Update the application so that it gets the
- 32. Yeoman Yeoman tool. Scaffolding. yo.
- 33. Yeomen Warders aka Beefeaters
- 35. Scaffolding is a technique, in which a specification is used to
- 36. Scaffolding tools examples
- 37. yo npm install –g yo generator-angular
- 38. yo angular AngularJS generators
- 41. Practice #4
- 42. Task – goo.gl/yOC4Vx Create an application using yo AngularJS generator. Migrate
- 43. Configuring services Providers. Application phases.
- 44. Providers are used for services configuration.
- 45. Two execution phases
- 46. Example of a provider usage angular.module('myApp', []) .config(function($filterProvider) { $filterProvider.register('myFilter',
- 47. Routing Multiple views. $routeProvider. $routeParams.
- 49. $routeProvider $routeProvider .when('/phones', { templateUrl: 'partials/phone-list.html', controller: 'PhoneListCtrl' })
- 50. $routeParams // Given: // URL: http://server.com/index.html#/Chapter/1/Section/2?search=moby // Route: /Chapter/:chapterId/Section/:sectionId // Then
- 51. Practice #5
- 52. Task – goo.gl/nriURP Next to each repo entry in the list
- 53. http://kirbarn.blogpost.com [email protected] @kirbarn
- 54. References http://docs.angularjs.org/tutorial/ http://www.angularjs.org http://chabster.blogspot.com/2008/02/mvp-and-mvc-part-1.html
- 55. Скачать презентацию













































![Example of a provider usage
angular.module('myApp', [])
.config(function($filterProvider) {
Example of a provider usage
angular.module('myApp', [])
.config(function($filterProvider) {](/documents_3/5efc873f32b7d571119575f274de0013/img45.jpg)








Слайды и текст этой презентации
Похожие презентации