Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
MatelliNight - AngularJs
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Mickael Metesreau
October 01, 2013
Programming
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
MatelliNight - AngularJs
Mickael Metesreau
October 01, 2013
More Decks by Mickael Metesreau
See All by Mickael Metesreau
Fear the Ponies
mmetesreau
0
170
Alt.Net Talks - Make type system great again
mmetesreau
0
93
Alt.Net Talks - The Actor Model
mmetesreau
0
57
Lunch & Learn - Property Based Testing
mmetesreau
0
69
Betclic Dojo - Where is Fluffy?
mmetesreau
0
78
Mini training - EventStore
mmetesreau
0
75
Alt.Net Talks - EdgeJs
mmetesreau
0
300
Betclic Dojo - Extreme Carpaccio
mmetesreau
0
130
Betclic Dojo - Game of life
mmetesreau
0
46
Other Decks in Programming
See All in Programming
Built Our Own Background Agent at LayerX #aidevex_findy
layerx
PRO
9
3.8k
Build-to-own AI: Agentic Development for Humans
inesmontani
PRO
0
130
AWS DevOps AgentのAzure接続機能を検証して見えた活用法/Use Cases Verified for the AWS DevOps Agent's Azure Connectivity Feature
masakiokuda
0
180
言語を使う側から、作る側へ。 自作 Lisp で得た新たな気づき。
andpad
0
140
霧の中の代数的エフェクト
funnyycat
1
450
ソフトウェア設計に溶けるインフラ ― AWS CDK のインフラ認識論
konokenj
3
710
AI時代に設計が 最大の生産性レバーになる 意図駆動開発とデータを消さない設計|Don't Delete Your Data or Your Intent — Design as the Deepest Lever in the AI Era
tomohisa
0
120
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
480
自動化したのに回らないテスト運用の壁ーAI時代の品質責任と生産性
mfunaki
0
110
Lean は証明の正しさを確認するためだけのツールって思ってませんか?
inoueasei
1
130
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
2.7k
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
500
Featured
See All Featured
Mind Mapping
helmedeiros
PRO
1
290
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
350
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.1k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Practical Orchestrator
shlominoach
191
11k
HDC tutorial
michielstock
2
760
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
So, you think you're a good person
axbom
PRO
2
2.1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
450
Transcript
AngularJs Superheroic JavaScript MVW Framework
SPA Késako ? Single Page Application : Application web dont
l’ensemble des éléments nécessaires (contenu, présentation : Html, CSS et partie applicative : JavaScript) se trouvent dans un unique fichier. Wikipédia
Dans Quel Etat J’Erre ? (étagère !!!!!!!!!!)
One Ring To Rule Them All… Où SammyJs Mustache JQuery
Knockout Backbone …
It’s Alive, it’s Moving ! <html ng-app> <body> <p>Hello World
!</p> <script src="angular.min.js"></script> <script> … </script> </body> </html>
Le Model, la View et le Controller <html ng-app='myApp'> <body
ng-controller='FirstController'> <script src="angular.min.js"></script> <script> var myAppModule = angular.module('myApp', []); myAppModule.controller('FirstController', function($scope) { … }); </script> </body> </html>
Et Tu Bind Bind Bind Cette Donnée Qui Te Plait
! <html ng-app='myApp'> <body ng-controller='FirstController'> <p><input type='text' ng-model='someText'/></p> <p>{{someText}}</p> <p ng-bind='someText'></p> <script src="angular.min.js"></script> <script> var myAppModule = angular.module('myApp', []); myAppModule.controller('FirstController', function($scope) { $scope.someText = 'Hello World !'; }); </script> </body> </html>
Et Tu Cliques Cliques Cliques C’est Ta Façon D’Commander !
<html ng-app='myApp'> <body ng-controller='FirstController'> <button ng-click='someCommand()'>Click me!</button> <script src="angular.min.js"></script> <script> var myAppModule = angular.module('myApp', []); myAppModule.controller('FirstController', function($scope) { $scope.someCommand = function() { … } }); </script> </body> </html>
Maurice Tu Dépasse Les Bornes Des Limites ! <html ng-app='myApp'>
<body ng-controller='FirstController'> <p>{{someTextLvl1}}</p> <div ng-controller='SecondController'> <p>{{someTextLvl1}}</p> <p>{{someTextLvl2}}</p> </div> </body> </html> $scope $scope $scope
Can You Repeat The Question? <html ng-app='myApp'> <body ng-controller='FirstController'> <div
ng-repeat='item in tab'> <p>{{$index}}</p> <p>{{item.title}}</p> <p>{{item.desc}}</p> </div> <script src="angular.min.js"></script> <script> var myAppModule = angular.module('myApp', []); myAppModule.controller('FirstController', function($scope) { $scope.tab = [ {title: 'title1', desc:'desc1'}, …] }); </script> </body> </html>
I Like Your Style! <html ng-app='myApp'> <body ng-controller='FirstController'> <div ng-class='{MyStyle:
applyStyle}'> <p>Do you like it?</p> </div> <script src="angular.min.js"></script> <script> var myAppModule = angular.module('myApp', []); myAppModule.controller('FirstController', function($scope) { $scope.applyStyle = true; }); </script> </body> </html>
Le Changement C’est Maintenant <html ng-app='myApp'> <body ng-controller='FirstController'> <input type='text'
ng-model='search' /> <div ng-repeat='item in tab | filter: search | orderBy:title:true'> <p>{{$index}}</p> <p>{{item.title}}</p> <p>{{item.desc}}</p> </div> <script src="angular.min.js"></script> <script> var myAppModule = angular.module('myApp', []); myAppModule.controller('FirstController', function($scope) { $scope.tab = [ {title: 'title1', desc:'desc1'}, …] }); </script> </body> </html>
Accepte Moi ! <html ng-app='myApp'> <body ng-controller='FirstController'> <form name='myForm' novalidate>
<input name='i1' ng-model='item.someText' type='text' required /> <p ng-show='myForm.i1.$error.required & myForm.i1.$dirty' >Missing!!</p> <button ng-disabled='$myForm.$invalid' ng-click='post(item)'>Post</button> </div> <script src="angular.min.js"></script> <script> var myAppModule = angular.module('myApp', []); myAppModule.controller('FirstController', function($scope) { $scope.post = function(item) { … }; }); </script> </body> </html>
Vers L‘Infini Et Au Delà !! <html ng-app='myApp'> <body> <a
href='#/home'>Home</a> | <a href='#/about'>About</a> <div ng-view> </div> <script src="angular.min.js"></script> <script> var myAppModule = angular.module('myApp', []); myAppModule.config(function($routeProvider) { $routeProvider .when('/home', {controller:'homeCtrl', templateUrl:'partials/home.html'}) .when('/about', {controller:'AboutCtrl', templateUrl:'partials/about.html'}) .otherwise({redirect:'/home'}); }); </script> </body> </html>
You Talking To Me? <script src="angular.min.js"></script> <script> var myAppModule =
angular.module('myApp', []); myAppModule.controller('FirstController', function($scope, $http) { $http.get('/api/items') .success(function(data, status, headers, config){ }) .error(function(data, status, headers, config){ }); $scope.add = function(data) { $http.post('/someUrl', data) .success(function(data, status, headers, config){ }) .error(function(data, status, headers, config){ }); } }); </script>
Et Bien Plus…. Internationalisation, Injection de dépendances, Tests, Promises, Custom
Composant… et full JAVASCRIPT !!!