Skip to content

Instantly share code, notes, and snippets.

@klyngen
Created February 20, 2021 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klyngen/b33295ad760313363d054fb4f5521bd4 to your computer and use it in GitHub Desktop.
Save klyngen/b33295ad760313363d054fb4f5521bd4 to your computer and use it in GitHub Desktop.
Angular web components example
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule
],
schemas: [ CUSTOM_ELEMENTS_SCHEMA ],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
<div>
<overtime-visualizer [overtimeData]="data" [subtract]="subtract"></overtime-visualizer>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment