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
AngularJS: Tipps and Tricks for $provide
Search
jowe
February 13, 2014
Programming
0
75
AngularJS: Tipps and Tricks for $provide
Donnerstagsvortrag Lightning Talk von @MJantke
jowe
February 13, 2014
Tweet
Share
More Decks by jowe
See All by jowe
AngularJS with RequireJS
jowe
1
100
Forms in AngularJS
jowe
1
120
Other Decks in Programming
See All in Programming
個人軟體時代
ethanhuang13
0
320
Vue・React マルチプロダクト開発を支える Vite
andpad
0
110
Swift Updates - Learn Languages 2025
koher
2
470
testingを眺める
matumoto
1
140
Oracle Database Technology Night 92 Database Connection control FAN-AC
oracle4engineer
PRO
1
440
OSS開発者という働き方
andpad
5
1.7k
時間軸から考えるTerraformを使う理由と留意点
fufuhu
16
4.8k
はじめてのMaterial3 Expressive
ym223
2
290
ProxyによるWindow間RPC機構の構築
syumai
3
1.2k
AIコーディングAgentとの向き合い方
eycjur
0
270
Reading Rails 1.0 Source Code
okuramasafumi
0
110
AIを活用し、今後に備えるための技術知識 / Basic Knowledge to Utilize AI
kishida
22
5.7k
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.5k
Rails Girls Zürich Keynote
gr2m
95
14k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Unsuck your backbone
ammeep
671
58k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
The Pragmatic Product Professional
lauravandoore
36
6.9k
The Power of CSS Pseudo Elements
geoffreycrofte
77
6k
Documentation Writing (for coders)
carmenintech
74
5k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Why Our Code Smells
bkeepers
PRO
339
57k
The Art of Programming - Codeland 2020
erikaheidi
56
13k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
Transcript
Tipps and Tricks for $provide
@MJantke Developer bei Mayflower Marco Jantke
What is $provide? Is it this dependency injection thing?
What is $provide? ‣ API to fill DI-container ‣ Configures
the $injector ‣ Uses strategies for varying services called recipes ‣ Most functionality is exposed to angular.Module
I've got a rough image but what is this $injector
again?
What is $injector? ‣ Holds the container ‣ API to
interact with DI-container ‣ Resolves requested dependencies for services ‣ Knows how to instantiate objects and how to invoke functions
Ok, so far so good. But what do you want
to show me?
Recipes Recipes
Recipes ‣ constant() - define constant for configuration ‣ value()
- define value, get value ‣ factory() - use the module pattern ‣ service() - pass constructor, get object ‣ decorator() - intercept and extend ‣ provider() - write your configurable factory
Let's $provide \../(-.-)\../
Many thanks for your attention :-) Questions open?