angular.js - ui-router到底如何实现单页应用?
高洛峰
高洛峰 2017-05-15 17:04:44
0
1
488

有没有好的例子
就是希望实现实现左侧工具栏,右侧信息栏
右侧的信息栏也可以一层层的点击下去
也就是只公用一个ui-view
我按照现有的教程,就只能实现2层
第3层就进不去了,地址是显示了,但是ui-view并没有覆盖原先的
网上好多教程都只有2层,也是很奇怪,难道没这个需求吗?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all (1)
某草草

This is a nested route, using $stateProvider. In fact, you can think of it as a series of route configurations, and trigger the corresponding view when the rules are met. I have seen that if you click on the left side, some product lists will appear on the right side, and then click on the product details, if this is the effect you want. Then, Angular official demo phonecat has it (there is only one for the first layer and the second layer)

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!