Introduction à AngularJS

Nicolas PENNEC
Nicolas PENNECFront-End Web Developer à OVH (Rennes, France)
Introduction à



“ HTML enhanced for web apps! ”
Qu’est-ce que AngularJS ?
 Framework JavaScript MVC MVP MVVM ???
   MVW : Model View Whatever
   W = "whatever works for you!"
 « Super-powered by Google »
 Open source : MIT Licence / GitHub
 Création de Web Application
 Modulable et extensible
Ses caractéristiques
   100% JavaScript (server side)
   Data binding
   Separating Data / Presentation / Logic
   Modules & Dependecy Injection
   Services
   Directive
   Rooting & Deep Link
   Form Validation
   Testing
Data binding avec AngularJS
Data binding avec AngularJS
Coding time
Directives
  <div ng-controller="Ctrl2">
     Date format: <input ng-model="format">
     Current time is: <span my-current-time="format"></span>
  </div>

  <div>
      <button ng-click="show=true">show</button>
      <dialog title="Hello {{username}}."
             visible="show"
             on-cancel="show = false"
             on-ok="show = false; doSomething()">
             Body goes here: {{username}} is {{title}}.
      </dialog>
  </div>
Frameworks concurrents
   Backbone.js
   Ember.js
   Spine.js
   KnockoutJS
   Dojo
   …

 Un peu de bonne lecture :
    http://coding.smashingmagazine.com/2012/07/27/journey-through-
     the-javascript-mvc-jungle/
    http://sporto.github.io/blog/2013/04/12/comparison-angular-
     backbone-can-ember/
RennesJS : enfin un JS User Group à Rennes ?
 Google group « RennesJS »
   http://groups.google.com/group/RennesJS
 Trello
   https://trello.com/board/rennesjs/516463cd93a6fa9c3a00acfc
 nico.pennec@gmail.com
 @NicoPennec
1 sur 9

Contenu connexe

Tendances(20)

Nuxt.JS IntrodructionNuxt.JS Introdruction
Nuxt.JS Introdruction
David Ličen2.2K vues
Vue js for beginner Vue js for beginner
Vue js for beginner
Chandrasekar G561 vues
VueJS: The Simple RevolutionVueJS: The Simple Revolution
VueJS: The Simple Revolution
Rafael Casuso Romate2.8K vues
Desktop, Web e MobileDesktop, Web e Mobile
Desktop, Web e Mobile
Paulo Moura161 vues
Rapid Testing, Rapid DevelopmentRapid Testing, Rapid Development
Rapid Testing, Rapid Development
mennovanslooten2.4K vues
Code ResumeCode Resume
Code Resume
Vincent Santamauro180 vues
Hybrid appHybrid app
Hybrid app
hyun soomyung1.3K vues
Javascript fullstasckJavascript fullstasck
Javascript fullstasck
William Bruno Moraes371 vues
Membangun Moderen UI dengan Vue.jsMembangun Moderen UI dengan Vue.js
Membangun Moderen UI dengan Vue.js
Froyo Framework157 vues
handout-05bhandout-05b
handout-05b
tutorialsruby228 vues
Vue.jsVue.js
Vue.js
Jadson Santos10.6K vues
Vue.js Getting StartedVue.js Getting Started
Vue.js Getting Started
Murat Doğan1.4K vues
Webpack Webpack
Webpack
Sofian Hadiwijaya258 vues
PWA Roadshow Seoul - KeynotePWA Roadshow Seoul - Keynote
PWA Roadshow Seoul - Keynote
Chang W. Doh1.7K vues

En vedette(8)

Dernier(20)

ChatGPT and AI for Web DevelopersChatGPT and AI for Web Developers
ChatGPT and AI for Web Developers
Maximiliano Firtman152 vues
METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...
METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...
Prity Khastgir IPR Strategic India Patent Attorney Amplify Innovation23 vues
Green Leaf Consulting: Capabilities DeckGreen Leaf Consulting: Capabilities Deck
Green Leaf Consulting: Capabilities Deck
GreenLeafConsulting170 vues

Introduction à AngularJS

  • 1. Introduction à “ HTML enhanced for web apps! ”
  • 2. Qu’est-ce que AngularJS ?  Framework JavaScript MVC MVP MVVM ???  MVW : Model View Whatever  W = "whatever works for you!"  « Super-powered by Google »  Open source : MIT Licence / GitHub  Création de Web Application  Modulable et extensible
  • 3. Ses caractéristiques  100% JavaScript (server side)  Data binding  Separating Data / Presentation / Logic  Modules & Dependecy Injection  Services  Directive  Rooting & Deep Link  Form Validation  Testing
  • 4. Data binding avec AngularJS
  • 5. Data binding avec AngularJS
  • 7. Directives <div ng-controller="Ctrl2"> Date format: <input ng-model="format"> Current time is: <span my-current-time="format"></span> </div> <div> <button ng-click="show=true">show</button> <dialog title="Hello {{username}}." visible="show" on-cancel="show = false" on-ok="show = false; doSomething()"> Body goes here: {{username}} is {{title}}. </dialog> </div>
  • 8. Frameworks concurrents  Backbone.js  Ember.js  Spine.js  KnockoutJS  Dojo  …  Un peu de bonne lecture :  http://coding.smashingmagazine.com/2012/07/27/journey-through- the-javascript-mvc-jungle/  http://sporto.github.io/blog/2013/04/12/comparison-angular- backbone-can-ember/
  • 9. RennesJS : enfin un JS User Group à Rennes ?  Google group « RennesJS »  http://groups.google.com/group/RennesJS  Trello  https://trello.com/board/rennesjs/516463cd93a6fa9c3a00acfc  nico.pennec@gmail.com  @NicoPennec