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 1
1
import { Component } from '@angular/core' ;
2
+ import { MatRadioButton , MatRadioGroup } from '@angular/material/radio' ;
2
3
3
4
@Component ( {
4
5
selector : 'app-root' ,
5
6
templateUrl : './app.component.html' ,
6
- standalone : false ,
7
+ imports : [ MatRadioGroup , MatRadioButton ] ,
7
8
} )
8
9
export class AppComponent {
9
10
title = 'harness-e2e-cli' ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import { enableProdMode } from '@angular/core' ;
2
- import { platformBrowser } from '@angular/platform-browser' ;
2
+ import { bootstrapApplication , provideProtractorTestingSupport } from '@angular/platform-browser' ;
3
3
4
- import { AppModule } from './app/app.module' ;
5
4
import { environment } from './environments/environment' ;
5
+ import { AppComponent } from './app/app.component' ;
6
6
7
7
if ( environment . production ) {
8
8
enableProdMode ( ) ;
9
9
}
10
10
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';
2
2
import { AppComponent } from './app.component' ;
3
3
4
4
describe ( 'AppComponent' , ( ) => {
5
- beforeEach ( async ( ) => {
6
- await TestBed . configureTestingModule ( {
7
- declarations : [ AppComponent ] ,
8
- } ) . compileComponents ( ) ;
9
- } ) ;
10
-
11
5
it ( 'should create the app' , ( ) => {
12
6
const fixture = TestBed . createComponent ( AppComponent ) ;
13
7
const app = fixture . componentInstance ;
Original file line number Diff line number Diff line change 1
1
import { Component } from '@angular/core' ;
2
+ import { MatButtonModule } from '@angular/material/button' ;
2
3
3
4
@Component ( {
4
5
selector : 'app-root' ,
5
6
templateUrl : './app.component.html' ,
6
7
styleUrls : [ './app.component.scss' ] ,
7
- standalone : false ,
8
+ imports : [ MatButtonModule ] ,
8
9
} )
9
10
export class AppComponent {
10
11
title = 'yarn-pnp-compat' ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import { enableProdMode } from '@angular/core' ;
2
- import { platformBrowser } from '@angular/platform-browser' ;
2
+ import { bootstrapApplication } from '@angular/platform-browser' ;
3
3
4
- import { AppModule } from './app/app.module' ;
5
4
import { environment } from './environments/environment' ;
5
+ import { AppComponent } from './app/app.component' ;
6
6
7
7
if ( environment . production ) {
8
8
enableProdMode ( ) ;
9
9
}
10
10
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