Polymer with AngularJS using partial view -


this isn't problem question, theory/possibility question. have made polymer portfolio site list of image links points html page in file directory example /projects/test.html. problem have every time click on link loads new page because have separate html.

i read angularjs can provide partial view. if can combine angular, can keep website header , load content of links partial view.

i wondering if doable, , have install angular , change file structure or can import angularjs file , code there?

also angularjs provide routing love make url cleaner.i asking don't have waste time if attempt not work.

yes, of achievable angular; not need modify angular. couple things going. won't make sense right come once you've dug in little.

for prettier urls set $locationprovider.html5mode(true);

you want server serve 404s text/html requests return angular application (probably /index.html on server). if goes https://mycoolsite.com/projects/neato (which exists in angular app, not on server) angular application load , router display correct route.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -