File tree Expand file tree Collapse file tree 7 files changed +12
-50
lines changed Expand file tree Collapse file tree 7 files changed +12
-50
lines changed Original file line number Diff line number Diff line change 11import { Component } from '@angular/core' ;
2+ import { MatRadioButton , MatRadioGroup } from '@angular/material/radio' ;
23
34@Component ( {
45 selector : 'app-root' ,
56 templateUrl : './app.component.html' ,
6- standalone : false ,
7+ imports : [ MatRadioGroup , MatRadioButton ] ,
78} )
89export class AppComponent {
910 title = 'harness-e2e-cli' ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { enableProdMode } from '@angular/core' ;
2- import { platformBrowser } from '@angular/platform-browser' ;
2+ import { bootstrapApplication , provideProtractorTestingSupport } from '@angular/platform-browser' ;
33
4- import { AppModule } from './app/app.module' ;
54import { environment } from './environments/environment' ;
5+ import { AppComponent } from './app/app.component' ;
66
77if ( environment . production ) {
88 enableProdMode ( ) ;
99}
1010
11- platformBrowser ( )
12- . bootstrapModule ( AppModule )
13- . catch ( err => console . error ( err ) ) ;
11+ bootstrapApplication ( AppComponent , {
12+ providers : [ provideProtractorTestingSupport ( ) ] ,
13+ } ) . catch ( err => console . error ( err ) ) ;
Original file line number Diff line number Diff line change @@ -2,12 +2,6 @@ import {TestBed} from '@angular/core/testing';
22import { AppComponent } from './app.component' ;
33
44describe ( 'AppComponent' , ( ) => {
5- beforeEach ( async ( ) => {
6- await TestBed . configureTestingModule ( {
7- declarations : [ AppComponent ] ,
8- } ) . compileComponents ( ) ;
9- } ) ;
10-
115 it ( 'should create the app' , ( ) => {
126 const fixture = TestBed . createComponent ( AppComponent ) ;
137 const app = fixture . componentInstance ;
Original file line number Diff line number Diff line change 11import { Component } from '@angular/core' ;
2+ import { MatButtonModule } from '@angular/material/button' ;
23
34@Component ( {
45 selector : 'app-root' ,
56 templateUrl : './app.component.html' ,
67 styleUrls : [ './app.component.scss' ] ,
7- standalone : false ,
8+ imports : [ MatButtonModule ] ,
89} )
910export class AppComponent {
1011 title = 'yarn-pnp-compat' ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { enableProdMode } from '@angular/core' ;
2- import { platformBrowser } from '@angular/platform-browser' ;
2+ import { bootstrapApplication } from '@angular/platform-browser' ;
33
4- import { AppModule } from './app/app.module' ;
54import { environment } from './environments/environment' ;
5+ import { AppComponent } from './app/app.component' ;
66
77if ( environment . production ) {
88 enableProdMode ( ) ;
99}
1010
11- platformBrowser ( )
12- . bootstrapModule ( AppModule )
13- . catch ( err => console . error ( err ) ) ;
11+ bootstrapApplication ( AppComponent ) . catch ( err => console . error ( err ) ) ;
You can’t perform that action at this time.
0 commit comments