Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Angular js


Published on

A quick intro into angularjs 1.5.8

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Angular js

  1. 1. Athira Mukundan Solution Consultant @Sahaj
  2. 2. What’s the big deal? "What HTML would have been, had it been designed for building web-apps" Open Source, supported by Google Extremely well documented && Vibrant community of users Facilitate building single page applications. Page never reloads. No server-side page rendering Provide solutions for: Routing - handling updates to the URL hash fragment Templating - dynamically creating and updating HTML based on templates
  3. 3. Angular is all about - Templates Directives Model, View, Controller Scope Expression Compiler Filter
  4. 4. Agenda Directives, Filters and Data Binding Views, Controllers, Scope, Modules, Routes and Factories
  5. 5. Directives, Filters and Data Binding Directives (ng-app, ng-controller, ng-init, ng-show…..!): Lets you invent new tags for your application Angular is bundled with numerous directives Directives can add behaviours, bind data to scope, replace/extend existing html element Filters (currency, uppercase, number…..!): Used to formatting data. Data Binding: 1 way binding: ng-bind
  6. 6. Views, Controllers and Scope
  7. 7. Modules, Routes
  8. 8. Routing Used to bind the controller and a view without using the ng-controller Could be done with ng-route or ui-router The routing happens without reloading the page
  9. 9. Providers, Factory, Services, Value, Constant All the providers are instantiated only once. That means that they are all singletons. A constant is a value that can be injected everywhere. The value of a constant can never be changed. A value is just a simple injectable value. A service is an injectable constructor. A factory is an injectable function. A decorator can modify or encapsulate other providers except a constant. A provider is a configurable factory.
  10. 10. ….Providers, Factory, Services, Value, Constant