-
Notifications
You must be signed in to change notification settings - Fork 25
HelixUI with Angular
Ryan Johnson edited this page Jan 31, 2020
·
7 revisions
(IN PROGRESS...)
TBD...
TBD...
If you want use @angular/cli to bootstrap your application, you'll need to make sure to do the following to ensure maximum compatibility with HelixUI.
- copy
node_modules/helix-ui/assets tosrc/assets/helix-ui/ - copy
node_modules/@webcomponents/webcomponentsjs/assets tosrc/assets/webcomponentsjs/ - update
src/index.htmlcontents with official Helix layout markup - make sure
<link>and<scripts>insrc/index.htmlpoint to files insrc/assets/helix-uiandsrc/assets/webcomponentsjs - add
CUSTOM_ELEMENTS_SCHEMAto the list of schemas insrc/app/app.module.ts(see snippet below)
- Configures angular that to allow 3rd-party custom elements.
/*
* src/app/app.module.ts
*/
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule
],
providers: [],
bootstrap: [AppComponent],
schemas: [ CUSTOM_ELEMENTS_SCHEMA ]
})
export class AppModule { }TBD...