Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
AngularJS: Tipps and Tricks for $provide
Search
jowe
February 13, 2014
Programming
85
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AngularJS: Tipps and Tricks for $provide
Donnerstagsvortrag Lightning Talk von @MJantke
jowe
February 13, 2014
More Decks by jowe
See All by jowe
AngularJS with RequireJS
jowe
1
120
Forms in AngularJS
jowe
1
130
Other Decks in Programming
See All in Programming
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.1k
phperだってパンチカードでコーディングしたい
o0h
PRO
0
220
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
140
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
370
APNsからLive Activityを開始する話
yumnumm
0
150
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
7
1.9k
カツオ、ご期待ください
suneo3476
0
150
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
190
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
350
残高管理から台帳サービスへの進化
artoy
0
160
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
540
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
310
Featured
See All Featured
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
510
Six Lessons from altMBA
skipperchong
29
4.5k
Discover your Explorer Soul
emna__ayadi
2
1.3k
RailsConf 2023
tenderlove
30
1.6k
The Limits of Empathy - UXLibs8
cassininazir
1
700
Practical Orchestrator
shlominoach
192
12k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
Site-Speed That Sticks
csswizardry
13
1.5k
Facilitating Awesome Meetings
lara
57
7.2k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
480
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
550
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8k
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?