/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
integration/ng_elements/src/main.ts
15 строк
619 B
Paul Gschwendtner
test: update ng_elements integration test to run with APF v13 (#43431)
01 окт 2021, 21:28
01 окт 2021, 21:28
6e4821f
Код
Авторство
О чём код?
import {platformBrowser} from '@angular/platform-browser'; import {AppModule} from './app'; platformBrowser().bootstrapModule(AppModule, {ngZone: 'noop'}); const input = document.querySelector('input')!; const helloWorld = document.querySelector('hello-world-el')!; const helloWorldOnpush = document.querySelector('hello-world-onpush-el')!; const helloWorldShadow = document.querySelector('hello-world-shadow-el')!; input.addEventListener('input', () => { helloWorld.setAttribute('name', input.value); helloWorldOnpush.setAttribute('name', input.value); helloWorldShadow.setAttribute('name', input.value); });