Make your Angular App faster using Dynamic import
mridul037
Posted on April 22, 2020
Tips to make your angular app faster:
while importing your module using lazy loading helps
{ πππ‘β: 'βπππ', πππππππππ‘: π»ππππΆππππππππ‘;}
To using loadChildren:
{πππ‘β: 'βπππ', πππππΆβππππππ: './βπππ/βπππ.ππππ’ππ#π»πππππππ’ππ'}
to make even better use dynamic import() function in Javascript.
{
πππ‘β: 'βπππ',
πππππΆβππππππ: () => ππππππ‘('./βπππ/βπππ.ππππ’ππ').π‘βππ(π =>
π.π»πππππππ’ππ)
},
import statement return a promise. you read more about in given link.
Posted on April 22, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 24, 2024
November 19, 2024