Custom Widgets

There are some sections that are repeated in the whole app. We create widgets component and call that widget where it required.‌

You can create your own widget by following way.

1. Create a component then declare and export component in module file like this :

declarations: [MapComponent],
exports: [MapComponent]

2. Use the selector of custom widgets component in another component like this :

<embryo-Map></embryo-Map>

For Reference : https://www.oodlestechnologies.com/blogs/How-to-share-component-to-multiple-modules-in-Angular2

Last Updated 4 years ago
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages