This repository has been archived on 2025-04-26. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
angular-hotel-manager/src/app/hotel/create-hotel.component.ts
csimonis 20c04abe4f idk
2024-11-19 08:15:13 +01:00

35 lines
746 B
TypeScript

import { Component } from '@angular/core';
import {FormsModule} from "@angular/forms";
@Component({
selector: 'app-create-hotel',
standalone: true,
imports: [
FormsModule
],
template: `
<ng-form>
<label for="name">Name</label>
<br>
<input id="name" type="text">
<br>
<label for="description">Description</label>
<br>
<input id="description" type="text">
<br>
<label for="price">Price</label>
<br>
<input id="price" type="number">
<br>
<label for="rating">Rating</label>
<br>
<input id="rating" type="number">
<br>
<br>
<button type="submit">Submit</button>
</ng-form>
`,
})
export class CreateHotelComponent {
}