Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AngularJS - Framework for Apps

Avatar for Sean Lin Sean Lin
November 30, 2014

AngularJS - Framework for Apps

Slides from talk given at DevCon Yangon 2014

Avatar for Sean Lin

Sean Lin

November 30, 2014
Tweet

Other Decks in Programming

Transcript

  1. • Routing • Two-way data binding • Reusable, Clean, Modular

    • Template • Localization • Directives • Mobile Ready
  2. Two-way binding <!doctype html> <html ng-app> <head> <script src="angular.min.js"></script> </head>

    <body> <div> <label>Name:</label> <input type="text" ng-model="yourName" placeholder="Enter a name here"> <hr> <h1>Hello {{yourName}}!</h1> </div> </body> </html>
  3. Directives • Easy and simple way to add ‘widgets’ to

    your apps. • Reusable • data-specific-logic • web components (coming in Angular 2.0) angular.module('docsSimpleDirective', []) .controller('Controller', ['$scope', function($scope) { $scope.customer = { name: 'Naomi', address: '1600 Amphitheatre' }; }]) .directive('myCustomer', function() { return { template: 'Name: {{customer.name}} Address: {{customer.address}}' }; }); <div ng-controller="Controller"> <div my-customer></div> </div>
  4. Mobile Ready • ngTouch • offline storage (WebSQL, IndexedDB or

    localStorage) • ngSwipe • angular-gestures • Ionic Framework
  5. ngTouch, ngSwipe and gestures • Detect and handle touch events

    • Register multidirectional swipe events • Handle tap, double tap, swipe, drag, pinch and rotate events with angular-gestures
  6. • Performance focused with minimal DOM and zero jQuery •

    Hardware accelerated transitions • CLI to create, build, test and deploy apps • Build native apps for iOS and Android with Cordova
  7. Looking Ahead • Material Design for Angular • Angular Dart

    • Angular UI (including Angular Bootstrap) • ZURB’s Foundation for Apps (coming in December) • Support for various languages, frameworks and tools • Build Chrome Apps and Extensions • Car Dashboard System based on AngularJS (General Motors)