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

Fundamentos de AngularDart

Fundamentos de AngularDart

Seminario de AngularDart durante el Dart Flight School Granada

Esteban Dorado Roldan

March 18, 2014
Tweet

More Decks by Esteban Dorado Roldan

Other Decks in Programming

Transcript

  1. Welcome to Angular • An open-source Dart framework, maintained by

    Google • Assists with running single-page applications (SPA) • The library reads in HTML that contains additional custom tag attributes • Exists in 2 flavors: AngularJS & AngularDart
  2. • AngularDart API are class based • Same great framework

    but as a Dart Dialect • The framework uses injection by type instead of injection by name.
  3. Manages Notifies Observes Controller (Dart Objects) View (DOM) RAM Model

    (Dart Objects) <div> <span> <ul> <li> Structure: Model-View-Controller
  4. class Person { String name; } <div person> Hi, {{ctrl.person.name}}

    </div> @NgController( selector: '[person]', publishAs: 'ctrl' ) class Controller { Person person = new Person(); Controller() { person.name = 'Bob'; } } Model: View: Controller: (demo controller)