angularJS中router的使用指南

这篇文章主要介绍了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的使用指南的详细内容,更多请关注0133技术站其它相关文章!

赞(0) 打赏
未经允许不得转载:0133技术站首页 » Angular.js 答疑