duffmanseven
duffmanseven

Reputation: 175

Angular 4 Dynamically Create Component from User Definable input

I'm looking to build an App in Angular 4 that would allow components to be dynamically created from storage (database, url, server stored file). The goal is to allow users to build there own components to create custom dashboards to view data.

I've been looking through google and stackoverflow to see if something like this has been achieved, but I have not seen anything to point me in the right direction.

If this is possible would anyone be willing to explain or link me to a resource to help me get started on this?

Thank you in advance

Upvotes: 1

Views: 893

Answers (1)

Hung Tran
Hung Tran

Reputation: 365

You can check these out:

  1. https://medium.com/front-end-hacking/dynamically-add-components-to-the-dom-with-angular-71b0cb535286
  2. https://angular.io/guide/dynamic-component-loader

I prefer number 1 because it provides a very detailed & clear guide.

Upvotes: 1

Related Questions