search

Home  >  Q&A  >  body text

angular.js - AngularJS implements single-page application. How is the home page loaded with sub-pages?

AngularJS implements a single-page application. How does the homepage load subpages?
I know that when SPA loads subpages, it uses ajax to obtain the corresponding html page and then adds it to the corresponding container. Here I would like to ask if angularjs has encapsulated this part of the function for easy calling. Or does Angular itself use other methods, or does it require developers to implement it themselves?

phpcn_u1582phpcn_u15822860 days ago579

reply all(1)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-15 17:03:31

    Refer to angular’s ​​own routing mechanism, better is the uiRouter component

    reply
    0
  • Cancelreply