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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Tomoyuki Kashiro
April 09, 2015
Programming
220
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Angular New Router
Tomoyuki Kashiro
April 09, 2015
Other Decks in Programming
See All in Programming
Press start. Python's next generation.
willingc
PRO
3
250
Go 1.27 における memory allocation の高速化
andpad
0
340
Jindong: Introducing Declarative Haptics in Compose Multiplatform
l2hyunwoo
0
130
信頼性の目標を誰も求めてない
shubox
0
220
ソフトウェアエンジニアにとっての生成AI - 特性を知って使い倒す / generative ai for software enginner
kishida
7
2.2k
TSX の <Hoge<Fuga>> という構文に驚いた話 / tsx-type-argument-syntax
kanaru0928
0
240
MySQLとPostgreSQLって何が違うの?
akagami
0
150
freeeにおけるEvalsの実践例の紹介
freee
PRO
0
160
わからない話を追いかけたら、プログラミング言語を作る側にいた
ydah
3
560
AIと壁打ちしながら進めるコスト管理
fufuhu
2
1.8k
go-spidermonkeyでAIエージェントのCode Modeを実装する
syumai
3
1.3k
ソフトウェアラスタライザ
fadis
1
720
Featured
See All Featured
Discover your Explorer Soul
emna__ayadi
2
1.3k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
We Have a Design System, Now What?
morganepeng
55
8.3k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
300
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
580
From π to Pie charts
rasagy
0
330
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
400
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
670
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Navigating Weather and Climate Data
rabernat
0
490
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 :)