angularJS中router的使用指南

这几天看了angularjs和backbone,大看了解了knockout和emberjs,刚刚上网看到了一个angular的router的demo,现在顺便记下来

复制代码 代码如下:





route

//这个重要是做IE的兼容,发现不管用,IE坑爹,你懂的

Route Demo index









  

//list.html

运行下面代码

复制代码 代码如下:



Route : List.html



//detail.html

运行下面代码

复制代码 代码如下:



Route {{id}}: detail.html


代码就这些了,希望小伙伴们能够喜欢。

你可能感兴趣的:(angularJS中router的使用指南)