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
20250429 - CNTUG Meetup #67 / DevOps Taiwan Meetup #69 - Deep Dive into Tetragon: Building Runtime Security and Observability with eBPF
tico88612
0
170
読書シェア会 vol.4 『ダイナミックリチーミング 第2版』
kotaro666
0
110
Storybookの情報をMCPサーバー化する
shota_tech
2
760
ComposeでWebアプリを作る技術
tbsten
0
130
Embracing Ruby magic
vinistock
2
190
eBPF超入門「o11yに使える」とは (20250424_eBPF_o11y)
thousanda
1
110
AWS Summit Hong Kong 2025: Reinventing Programming - How AI Transforms Our Enterprise Coding Approach
dwchiang
0
130
Laravel × Clean Architecture
bumptakayuki
PRO
0
150
Designing Your Organization's Test Pyramid ( #scrumniigata )
teyamagu
PRO
4
1.1k
20250426 GDGoC 合同新歓 - GDGoC のススメ
getty708
0
110
インプロセスQAにおいて大事にしていること / In-process QA Meetup
medley
0
160
Optimizing JRuby 10
headius
0
580
Featured
See All Featured
Speed Design
sergeychernyshev
29
930
Bash Introduction
62gerente
612
210k
[RailsConf 2023] Rails as a piece of cake
palkan
54
5.5k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.7k
Designing for Performance
lara
608
69k
Agile that works and the tools we love
rasmusluckow
329
21k
Faster Mobile Websites
deanohume
306
31k
Making the Leap to Tech Lead
cromwellryan
133
9.3k
Optimizing for Happiness
mojombo
378
70k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
34
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 :)