mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: Migrate all integration tests with the schematic. (#58160)
All components, directives and pipes will now use standalone as default. Non-standalone decorators have now . PR Close #58160
This commit is contained in:
committed by
Paul Gschwendtner
parent
30766d6b77
commit
e85021a7ba
@@ -36,6 +36,7 @@ describe('AppComponent', () => {
|
||||
@Component({
|
||||
selector: 'app-title-ce',
|
||||
template: '',
|
||||
standalone: false,
|
||||
})
|
||||
class TestTitleComponent {
|
||||
@Input() appName = '';
|
||||
|
||||
@@ -3,6 +3,7 @@ import {Component} from '@angular/core';
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
template: '<app-title-ce [appName]="title"></app-title-ce>',
|
||||
standalone: false,
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'cli-elements-universal';
|
||||
|
||||
@@ -3,6 +3,7 @@ import {Component, Input} from '@angular/core';
|
||||
@Component({
|
||||
selector: 'app-title',
|
||||
template: '<h1>{{ appName }} app is running!</h1>',
|
||||
standalone: false,
|
||||
})
|
||||
export class TitleComponent {
|
||||
@Input() appName = 'Unknown';
|
||||
|
||||
Reference in New Issue
Block a user