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
190
Angular New Router
Tomoyuki Kashiro
April 09, 2015
Tweet
Share
Other Decks in Programming
See All in Programming
Fluid Templating in TYPO3 14
s2b
0
130
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
450
Implementation Patterns
denyspoltorak
0
280
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
590
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
160
2026年 エンジニアリング自己学習法
yumechi
0
130
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
250
AI & Enginnering
codelynx
0
110
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
450
Featured
See All Featured
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
79
The Mindset for Success: Future Career Progression
greggifford
PRO
0
230
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
52
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
117
110k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
580
Evolving SEO for Evolving Search Engines
ryanjones
0
120
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
290
Become a Pro
speakerdeck
PRO
31
5.8k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.9k
Designing Experiences People Love
moore
144
24k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
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 :)