bigBear713 / nb-common

Some common component, pipe, service based on angular.
https://bigbear713.github.io/nb-common/
MIT License
41 stars 6 forks source link

Provide a service to dynamically load components #23

Open bigBear713 opened 1 year ago

bigBear713 commented 1 year ago

version: v15.2.0

You know, we can use the Angular's API to new a component and insert it into the view. But it's a bit tedious. And sometimes it is better when the components are tracked and reused. So we can define a service to do this, make the function be easier