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

Ember.js - praktična primena

DaFED
February 04, 2015

Ember.js - praktična primena

DaFED#29
Speaker: Dušan Petrović

Kreiranje Single Page aplikacije uz pomoć Ember.js frejmvorka kroz "Live coding"

DaFED

February 04, 2015
Tweet

More Decks by DaFED

Other Decks in Programming

Transcript

  1. Šta je Ember.js?  Javascript framework  Koristi jQuery i

    Handlebars.js  Zasniva se na MVC dizajn šablonu
  2.  Router  Stanje aplikacije se čuva u URL pretraživača

     Izmenom URL-a, menja se i stanje aplikacije  Route  Definiše model u template-u Koncepti
  3.  Template  Handlebars.js  Predstavlja interfejs aplikacije  View

     Definiše na koji se template odnosi  Ima svoj kontroler Koncepti
  4.  Component  Prilagođeni HTML tag  View sa izmenjenim

    funkcionalnostima  Nema svoj kontroler Koncepti
  5. URL Route name Controller Route Template / index IndexController IndexRoute

    index /post post PostController PostRoute post /page page PageController PageRoute page Naming conventions
  6. Naming conventions URL Route name Controller Route Template / index

    IndexController IndexRoute index /page/about page.about PageAboutController PostRoute page/about /folder_tree folder_tree FolderTreeController FolderTreeRoute folder_tree
  7. Korisni linkovi  http://emberjs.com/guides  Ember inspector  Todo MVC

     Step by step tutorial to build Ember app  EmberWatch  Ember jobs