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.

1st Oct 2018, 6:11 PM
Maya D
Maya D - avatar
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 :)
3rd Oct 2018, 7:11 PM
Koushik Seal
Koushik Seal - avatar
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. :)
3rd Oct 2018, 3:21 PM
Koushik Seal
Koushik Seal - avatar
0
Thanks, cache is good idea:) Could you recommend me some tutorial of how to configure angular for multi pages projects?
3rd Oct 2018, 6:49 PM
Maya D
Maya D - avatar
0
Thanks a lot Koushik Seal , I hope it will be helpfull😀👍🏼
4th Oct 2018, 6:46 AM
Maya D
Maya D - avatar