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

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -