Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
76
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
110
Forms in AngularJS
jowe
1
120
Other Decks in Programming
See All in Programming
宅宅自以為的浪漫:跟 AI 一起為自己辦的研討會寫一個售票系統
eddie
0
500
手軽に積ん読を増やすには?/読みたい本と付き合うには?
o0h
PRO
1
170
Canon EOS R50 V と R5 Mark II 購入でみえてきた最近のデジイチ VR180 事情、そして VR180 静止画に活路を見出すまで
karad
0
100
俺流レスポンシブコーディング 2025
tak_dcxi
14
8.6k
ID管理機能開発の裏側 高速にSaaS連携を実現したチームのAI活用編
atzzcokek
0
220
MAP, Jigsaw, Code Golf 振り返り会 by 関東Kaggler会|Jigsaw 15th Solution
hasibirok0
0
230
JETLS.jl ─ A New Language Server for Julia
abap34
1
360
Cap'n Webについて
yusukebe
0
130
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
390
C-Shared Buildで突破するAI Agent バックテストの壁
po3rin
0
380
堅牢なフロントエンドテスト基盤を構築するために行った取り組み
shogo4131
8
2.3k
リリース時」テストから「デイリー実行」へ!開発マネージャが取り組んだ、レガシー自動テストのモダン化戦略
goataka
0
130
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
46
7.8k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Visualization
eitanlees
150
16k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
How to Ace a Technical Interview
jacobian
280
24k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
1
96
Writing Fast Ruby
sferik
630
62k
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Typedesign – Prime Four
hannesfritz
42
2.9k
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?