mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
`application` builder is preferred over `browser` builder. This updates all the examples I could find to use `application` builder. A couple notes of fixes that needed to happen: 1. The testing example was broken because it relied on `~` imports in CSS files, which is a Webpack-specific features. However I don't think we need those custom styles at all, so I just removed the import altogether. 2. A few tests seemed to be affected and needed to be cleaned up. PR Close #52361
8 lines
368 B
TypeScript
8 lines
368 B
TypeScript
import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser';
|
|
import {provideAnimations} from '@angular/platform-browser/animations';
|
|
|
|
import {AppComponent} from './app/app.component';
|
|
|
|
bootstrapApplication(AppComponent, {
|
|
providers: [provideProtractorTestingSupport(), provideAnimations()],
|
|
}).catch((err) => console.error(err));
|