Reputation: 163
I am developing a product. There, i am separating a page with so many templates, use atleast 5-8 ng-include per page. is there any problem to use so many ng-include in a page?
Upvotes: 4
Views: 273
Reputation: 1
Depending on the reason behind so many partials your use of it may be justified. Generally when you have a lot of partials, it would be better for performance reason to use the $cacheFactory.Cache to store and retrieve the data in the clients browser.
Upvotes: 0
Reputation: 8663
The major problem is that each ng-include generates a http request, which will impact the page load times.
If all your doing is splitting up a page, you have a couple of options:
Upvotes: 3