What is an angular Element? -Expert level Angular Interview Questions

Anil Kumar

--

Photo by Raoul Ortega on Unsplash

Angular element is nothing just a web component / web element having custom behavior of combined feature (/api/code/style etc).

We create componet using angular and use it other framework or vanilla js also, Component register with browser lifecyle.

@angular/elements package exports a createCustomElement() ex funcction for creating and it transform the whole angular component with its life cyle to DOM API..

We use it like normal html tag . they follow life cyle creation , attaching detaching destroying.

For More details read here

Official Guide- Angular Element

--

--

No responses yet