Create HTML Tag with Angular 5?

0

With angularjs I created a directive, and only imported using the tag and it was already available for use in any HTML file. I used this to center some visual objects that were repeated in various parts of the system, such as navbar, sidebar, menus .. How do I do this using angled 5?

    
asked by anonymous 02.01.2018 / 20:37

1 answer

1

In Angular 2+, the same behavior can be achieved through components.

You create a component, and import it into other components.

IrecommendreadingAngulardocumentation, specifically the part about architecture

    
02.01.2018 / 20:39