[Solved] Persist class property Angular 5

You could either use a Service or localStorage/Session Storage for Persisting Data. localStorage and sessionStorage accomplish the exact same thing and have the same API, but with sessionStorage the data is persisted only until the window or tab is closed, while with localStorage the data is persisted until the user manually clears the browser cache … Read more

[Solved] Angular 5 export html to image

If you want to add url links to images dynamically, here is the code. You can change the input text event to that HTML link which you want to store. HTML for module HTML: <h1>{{title}}</h1> <div> <input type=”text” (input)=”onInputEvent($event)”> </div> <div> <a [href]=’url’> <img src=”https://stackoverflow.com/questions/51904633/smiley.gif” alt=”HTML tutorial” style=”width:42px;height:42px;border:0;”> </a> </div> module typeScript: import { Component … Read more