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
74
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
CEDEC 2025 『ゲームにおけるリアルタイム通信への QUIC導入事例の紹介』
segadevtech
3
820
React は次の10年を生き残れるか:3つのトレンドから考える
oukayuka
41
16k
[DevinMeetupTokyo2025] コード書かせないDevinの使い方
takumiyoshikawa
2
280
PHPカンファレンス関西2025 基調講演
sugimotokei
6
1.1k
令和最新版手のひらコンピュータ
koba789
13
7.2k
抽象化という思考のツール - 理解と活用 - / Abstraction-as-a-Tool-for-Thinking
shin1x1
1
950
書き捨てではなく継続開発可能なコードをAIコーディングエージェントで書くために意識していること
shuyakinjo
1
250
CLI ツールを Go ライブラリ として再実装する理由 / Why reimplement a CLI tool as a Go library
ktr_0731
3
1k
AIコーディングエージェント全社導入とセキュリティ対策
hikaruegashira
16
9.6k
Go製CLIツールをnpmで配布するには
syumai
2
1.1k
マイコンでもRustのtestがしたい その2/KernelVM Tokyo 18
tnishinaga
2
1.8k
No Install CMS戦略 〜 5年先を見据えたフロントエンド開発を考える / no_install_cms
rdlabo
0
480
Featured
See All Featured
Become a Pro
speakerdeck
PRO
29
5.5k
Facilitating Awesome Meetings
lara
54
6.5k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
Gamification - CAS2011
davidbonilla
81
5.4k
It's Worth the Effort
3n
185
28k
Making the Leap to Tech Lead
cromwellryan
134
9.5k
The Cost Of JavaScript in 2023
addyosmani
51
8.8k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
760
Why Our Code Smells
bkeepers
PRO
337
57k
Documentation Writing (for coders)
carmenintech
73
5k
Automating Front-end Workflow
addyosmani
1370
200k
Code Review Best Practice
trishagee
69
19k
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?