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
Angular New Router
Search
Tomoyuki Kashiro
April 09, 2015
Programming
2
170
Angular New Router
Tomoyuki Kashiro
April 09, 2015
Tweet
Share
Other Decks in Programming
See All in Programming
エンジニア向けCursor勉強会 @ SmartHR
yukisnow1823
3
13k
UMAPをざっくりと理解 / Overview of UMAP
kaityo256
PRO
3
1.6k
データと事例で振り返るDevin導入の"リアル" / The Realities of Devin Reflected in Data and Case Studies
rkaga
3
2.8k
OpenTelemetry + LLM = OpenLLMetry!?
yunosukey
2
190
20250426 GDGoC 合同新歓 - GDGoC のススメ
getty708
0
120
CRUD から CQRS へ ~ 分離が可能にする柔軟性
tkawae
0
170
generative-ai-use-cases(GenU)の推しポイント ~2025年4月版~
hideg
1
430
Ruby で作る RISC-V CPU エミュレーター / RISC-V CPU emulator made with Ruby
hayaokimura
5
1.2k
Rubyの!メソッドをちゃんと理解する
alstrocrack
2
380
「MCPを使ってる人」が より詳しくなるための解説
yamaguchidesu
0
250
一緒に働きたくなるプログラマの思想 #QiitaConference
mu_zaru
84
21k
バイラテラルアップサンプリング
fadis
3
630
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
227
22k
Become a Pro
speakerdeck
PRO
28
5.3k
BBQ
matthewcrist
88
9.6k
Navigating Team Friction
lara
185
15k
Faster Mobile Websites
deanohume
307
31k
Fireside Chat
paigeccino
37
3.4k
Designing Experiences People Love
moore
142
24k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Building Adaptive Systems
keathley
41
2.5k
Optimizing for Happiness
mojombo
378
70k
Building Applications with DynamoDB
mza
94
6.4k
GraphQLとの向き合い方2022年版
quramy
46
14k
Transcript
ANGULAR NEW ROUTER
TOMOYUKI KASHIRO Twitter : @Tkashiro Github : @kashiro Freelance Web
Front-end Developer
http://goo.gl/MpnOiM
BASIC USAGE
DIRECTORY There is no way to change components (html and
javascript) path in the settings.
CONTROLLER app.js
COMPONENTS component/home/home.js
COMPONENTS component/home/home.html
HTML index.html ng-link=“home” : href=“/“ ng-link=“detail({id: ‘hoge’})” : href=“/detail/hoge“
NG-LINK
RESULT
SIBLING USAGE
SETTING Navigation Area Contents Area
/index.html Home Nav Home Contents
/detail/index.html Detail Nav Detail Contents
RESULT LEFT CONTENT RIGHT CONTENT
RESULT
HTML index.html
CONTROLLER
RESULT
OTHER USAGE
LIFE CYCLE HOOK You can hook routing life cycle (
e.g. activate / deactivate ) • Activate : useful to check login status • Deactivate : useful to check input validation
SUMMARY
• still have some inconvenient things. • new router is
still developing… • It will be useful to controlling routing. i think. • Let’s contribute :)