Builder Angular SDK
Usage
Install
npm install --save @builder.io/angular
Add the module
import { BuilderModule } from '@builder.io/angular';
@NgModule({
...
imports: [ BuilderModule.forRoot('YOUR_API_KEY') ],
...
})
export class MyAppModule { }
And then add the component wherever you like, and you are done!
<!-- The model input can be any model of yours -->
<builder-component
model="page"
(load)="contentLoaded($event)"
(error)="contentError($event)">
<!-- Default content inside the tag shows while the builder content is fetching -->
<div class="spinner"></div>
</builder-component>