anchor tags and dynamic views in angular.js

删除回忆录丶 提交于 2019-12-13 03:00:41

问题


I'm taking my first steps with angular, looks promising but i have some issues, hope someone can help.

i have a long html page divided to sections each section is an anchor tag, you can navigate to it from top menu. the content in each section changes according to some parameters the user selects. so the 3rd section's content for instance can be different(template) each time.

my problem: i would like to dynamically load views into the section. as i understand it i have only one ng-view that corresponds to specific rout. how can i load a view (template+controller) dynamically as the user slides to the anchor tag?

thanks

来源:https://stackoverflow.com/questions/20031537/anchor-tags-and-dynamic-views-in-angular-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!