https://github.com/angular/angular
Raw File
Tip revision: a16e3b8fe1f77b163b0763c263d98f275a6c038c authored by Dylan Hunn on 27 September 2023, 20:21:49 UTC
release: cut the v16.2.7 release
Tip revision: a16e3b8
main.ts
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);
});
back to top