Skip to content

Commit

Permalink
feat(test-app): migrate to standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
Badisi committed Dec 2, 2024
1 parent fb5c356 commit 049575c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 35 deletions.
11 changes: 10 additions & 1 deletion projects/tests-app/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import { NgFor } from '@angular/common';
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatButton } from '@angular/material/button';
import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatFormField, MatInput, MatLabel } from '@angular/material/input';
import { MatOption, MatSelect } from '@angular/material/select';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
standalone: false
imports: [
NgFor, MatLabel, MatButton, MatSelect, MatInput, MatFormField, MatOption,
FormsModule, MatDatepickerModule
]
})
export class AppComponent {
public foods: string[] = ['Steak', 'Pizza', 'Tacos'];
Expand Down
29 changes: 0 additions & 29 deletions projects/tests-app/src/app/app.module.ts

This file was deleted.

15 changes: 10 additions & 5 deletions projects/tests-app/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { bootstrapApplication } from '@angular/platform-browser';
import { provideAnimations } from '@angular/platform-browser/animations';
import { AppComponent } from './app/app.component';
import { provideNativeDateAdapter } from '@angular/material/core';

import { AppModule } from './app/app.module';

platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
bootstrapApplication(AppComponent, {
providers: [
provideAnimations(),
provideNativeDateAdapter()
]
}).catch(err => console.error(err));

0 comments on commit 049575c

Please sign in to comment.