mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Updated examples to align with the latest Angular style: - Removed `standalone: false` since it is unnecessary. - Dropped module-based implementation in favor of standalone. PR Close #64167
29 lines
904 B
TypeScript
29 lines
904 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
import 'zone.js';
|
|
import 'zone.js/plugins/task-tracking';
|
|
|
|
// okd
|
|
|
|
import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser';
|
|
import {routes, TestsAppComponent} from './test_app_component';
|
|
import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core';
|
|
import {provideRouter} from '@angular/router';
|
|
import {provideAnimations} from '@angular/platform-browser/animations';
|
|
|
|
const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideRouter(routes),
|
|
provideAnimations(),
|
|
provideZoneChangeDetection(),
|
|
provideProtractorTestingSupport(),
|
|
],
|
|
};
|
|
|
|
bootstrapApplication(TestsAppComponent, appConfig).catch((err) => console.error(err));
|