问题描述:

For example

In my angular website I have 2 pages called /app , /app/users

If someone visits /app page it displays app.html content

i) When user navigate from /app page to /app/users page angular is fetching users.html and displays inside /app.html 's ui-view.

ii) But if user visits /app/users page directly then my server routing this into users-full-page.html page which have both app.html and users.html codes. Also it have same AngularJs functionality. (Am doing this for SEO purpose)

Now the problem is, In my second case when user visit directly into /app/users page after the page load Angular reloading the users.html content again which already loaded directly from server

So how to prevent this?

Note

Actually I don't have error or problem on Angular code anywhere to show. It's working. I want to prevent one of its feature. When user navigate /app/users page it loading users.html content without problem. But when user visits /app/users page directly I already loaded users.html content in server side itself. So I don't want angular to load it again. So I need to prevent

相关阅读:
Top