Embryo
  • Introduction
  • Folder Structure
  • Embryo-angular
    • Installation
    • Translate App
    • Add/Delete Component
    • Custom Widgets
    • Style Customization
    • Routing/Navigation
    • Rtl
    • Credits
  • Embryo ReactJS
    • Installation
    • Translate The App
    • Adding New Widgets
    • Style Customization
    • Instant Search With Algolia
    • Credits
  • Embryo Vuejs
  • FAQ's (Frequently Asked Questions)
  • Changelog
  • Customer Support
Powered by GitBook
On this page
  1. Embryo-angular

Custom Widgets

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

PreviousAdd/Delete ComponentNextStyle Customization

Last updated 6 years ago

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