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
Oxlint JS plugins
kazupon
1
1.1k
ぼくの開発環境2026
yuzneri
1
290
20260228_JAWS_Beginner_Kansai
takuyay0ne
5
370
文字コードの話
qnighy
43
16k
CSC307 Lecture 12
javiergs
PRO
0
450
AIに仕事を丸投げしたら、本当に楽になれるのか
dip_tech
PRO
0
170
15年目のiOSアプリを1から作り直す技術
teakun
0
570
受け入れテスト駆動開発(ATDD)×AI駆動開発 AI時代のATDDの取り組み方を考える
kztakasaki
2
490
CSC307 Lecture 11
javiergs
PRO
0
580
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
8
2k
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1.1k
nilとは何か 〜interfaceの構造とnil!=nilから理解する〜 / Understanding nil in Go Interface Representation and Why nil != nil
kuro_kurorrr
3
1.5k
Featured
See All Featured
Code Review Best Practice
trishagee
74
20k
Design in an AI World
tapps
0
160
AI: The stuff that nobody shows you
jnunemaker
PRO
3
340
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
270
How to Ace a Technical Interview
jacobian
281
24k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Abbi's Birthday
coloredviolet
2
5k
GraphQLとの向き合い方2022年版
quramy
50
14k
Speed Design
sergeychernyshev
33
1.6k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
170
Are puppies a ranking factor?
jonoalderson
1
3k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
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 :)