2018-07-15 23:02:16 +00:00
|
|
|
import {platformBrowser} from '@angular/platform-browser';
|
|
|
|
|
import {AppModuleNgFactory} from './app.ngfactory';
|
|
|
|
|
|
|
|
|
|
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory, {ngZone: 'noop'});
|
|
|
|
|
|
2018-08-28 06:28:20 +00:00
|
|
|
const helloWorld = document.querySelector('hello-world-el');
|
2018-07-15 23:02:16 +00:00
|
|
|
const input = document.querySelector('input[type=text]');
|
2018-08-28 06:28:20 +00:00
|
|
|
if(input && helloWorld){
|
2018-07-15 23:02:16 +00:00
|
|
|
input.addEventListener('input', e => {
|
|
|
|
|
const newText = (e.target as any).value;
|
2018-08-28 06:28:20 +00:00
|
|
|
helloWorld.setAttribute('name', newText);
|
2018-07-15 23:02:16 +00:00
|
|
|
});
|
|
|
|
|
}
|