0
Is there any way to use Angular 6 in multi pages website?
We want to use it not for whole website, but for some blocks (containers) in several pages.
4 Réponses
+ 1
try this
https://www.mediacurrent.com/blog/building-wundergroundcom-how-bootstrap/
and its plunkr
http://plnkr.co/edit/A7fyFUST9IdP1FriauXk?p=preview
its in angular 2, but the main concept is same.
1. do not use router
2. load the bundle in you pages
3. use the app component in your desired blocks :)
0
Possible, but you need to cache the bundle js files. Because the bundle js files are huge and will slow down page load. You may use app cache. :)
0
Thanks, cache is good idea:) Could you recommend me some tutorial of how to configure angular for multi pages projects?
0
Thanks a lot Koushik Seal , I hope it will be helpfull😀👍🏼