问题
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