2018-07-15 23:02:16 +00:00
|
|
|
import {platformBrowser} from '@angular/platform-browser';
|
2021-09-27 15:03:59 +00:00
|
|
|
import {AppModule} from './app';
|
2018-07-15 23:02:16 +00:00
|
|
|
|
2021-09-27 15:03:59 +00:00
|
|
|
platformBrowser().bootstrapModule(AppModule, {ngZone: 'noop'});
|
2018-07-15 23:02:16 +00:00
|
|
|
|
2020-11-04 18:45:33 +00:00
|
|
|
const input = document.querySelector('input')!;
|
|
|
|
|
const helloWorld = document.querySelector('hello-world-el')!;
|
2020-11-04 18:46:59 +00:00
|
|
|
const helloWorldOnpush = document.querySelector('hello-world-onpush-el')!;
|
2020-11-04 18:45:33 +00:00
|
|
|
const helloWorldShadow = document.querySelector('hello-world-shadow-el')!;
|
|
|
|
|
|
|
|
|
|
input.addEventListener('input', () => {
|
|
|
|
|
helloWorld.setAttribute('name', input.value);
|
2020-11-04 18:46:59 +00:00
|
|
|
helloWorldOnpush.setAttribute('name', input.value);
|
2020-11-04 18:45:33 +00:00
|
|
|
helloWorldShadow.setAttribute('name', input.value);
|
|
|
|
|
});
|