How does one properly modularize an Angularjs
app? I have an HTML
page with separate parts, which I want to have separate controllers. At the moment I have one single controller, which serves the whole page. Different parts of the HTML
page share the same scope data. Could someone provide a short and neat example with multiple controllers serving parts of the same page and sharing common scope data? I'm quite new to Angular.
Many thanks.
答案 0 :(得分:3)
这个问题太宽泛,无法完全回答,但这里有一些提示: