Caching of Angular components

145 views
Skip to first unread message

Manoj Pathak

unread,
Oct 24, 2019, 5:53:40 PM10/24/19
to Angular and AngularJS discussion
Hi ,

I have a requirement to cache the rendered angular component. I want to cache the View + Model part of component and everytime i retrieve from cache i get the new data for component to fed into the model and view will show latest data rendered.

Kindly let me know how to achieve this use case.

Regards
Manoj Pathak

Sander Elias

unread,
Oct 29, 2019, 10:33:06 AM10/29/19
to Angular and AngularJS discussion
Hi Manoj,

Have a look at how ngIf works, and build your own structural directive to handle your use-case.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages