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
200
2
Share
Angular New Router
Tomoyuki Kashiro
April 09, 2015
Other Decks in Programming
See All in Programming
ソフトウェア設計の結合バランス #phperkaigi
kajitack
0
160
Making the RBS Parser Faster
soutaro
0
590
AWSコミュニティ活動は顧客のクラウド推進に効くのか / Do AWS community activities help customers adopt the cloud?
seike460
PRO
0
150
WebAssembly を読み込むベストプラクティス 2026年春版 / Best Practices for Loading WebAssembly (Spring 2026)
petamoriken
4
770
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
260
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.7k
The Monolith Strikes Back: Why AI Agents ❤️ Rails Monoliths
serradura
0
360
의존성 주입과 모듈화
fornewid
0
150
【26新卒研修資料】TDD実装演習
dip_tech
PRO
0
120
感情を設計する
ichimichi
5
1.6k
Back to the roots of date
jinroq
0
520
Lightning-Fast Method Calls with Ruby 4.1 ZJIT / RubyKaigi 2026
k0kubun
3
1.8k
Featured
See All Featured
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
Automating Front-end Workflow
addyosmani
1370
200k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
140
The Mindset for Success: Future Career Progression
greggifford
PRO
0
320
Deep Space Network (abreviated)
tonyrice
0
130
Discover your Explorer Soul
emna__ayadi
2
1.1k
Making Projects Easy
brettharned
120
6.6k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
160
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
520
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
820
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
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 :)