wip
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<p>create-auto works!</p>
|
||||
|
||||
<button (click)="createAuto">Auto erstellen</button>
|
||||
<button (click)="createAuto()">Auto erstellen</button>
|
||||
|
||||
@@ -5,17 +5,13 @@ import { Auto } from '../Auto';
|
||||
selector: 'app-create-auto',
|
||||
imports: [],
|
||||
templateUrl: './create-auto.component.html',
|
||||
styleUrl: './create-auto.component.css'
|
||||
styleUrl: './create-auto.component.css',
|
||||
})
|
||||
export class CreateAutoComponent {
|
||||
constructor(
|
||||
@Output() public autoInitializedEvent: EventEmitter<Auto>
|
||||
) {
|
||||
autoInitializedEvent = new EventEmitter<Auto>();
|
||||
}
|
||||
@Output() autoInitializedEvent: EventEmitter<Auto> = new EventEmitter<Auto>();
|
||||
|
||||
createAuto() {
|
||||
var auto = new Auto("BMW", "e36", "DE-gho-st");
|
||||
var auto = new Auto("BMW", "e36", "DE-RS-7331");
|
||||
this.autoInitializedEvent.emit(auto);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user