angularjs - What is the difference between ngInclude and ngRoute -


i start using ngroute because ngrouter talk here lately started realizing nginclude working fine me , i'm wondering why seems using ngrouter instead. both load templates (or fragments) , can attach controller either or. benefit using ngroute can use href load template? don't mind using ng-click , changing nginclude value true. seems easier me i'm sure i'm missing something.

the point of using router assign urls pages of app. can refresh current page, or send link current page friend, or bookmark current page, , land on that page, instead of landing on home page of app.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -