Skip to content

Commit 46dfd1a

Browse files
committed
🚧 feat: alterou o package, tsconfig, add roteamento e angular material
1 parent 874f141 commit 46dfd1a

File tree

7 files changed

+1671
-16
lines changed

7 files changed

+1671
-16
lines changed

package-lock.json

Lines changed: 1639 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@angular/compiler": "^11.0.5",
1818
"@angular/core": "^11.0.5",
1919
"@angular/forms": "^11.2.14",
20+
"@angular/material": "^15.1.3",
2021
"@angular/platform-browser": "^11.0.5",
2122
"@angular/platform-browser-dynamic": "^11.0.5",
2223
"@angular/router": "^11.0.5",

src/app/app-routing.module.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { RouterModule, Routes } from "@angular/router";
2+
import { NgModule } from "@angular/core";
3+
4+
import { SnippetComponent } from "./components/snippet/snippet.component";
5+
6+
const routes: Routes = [];
7+
8+
const RoutesApp: Routes = [
9+
{ path:'', component: SnippetComponent },
10+
11+
];
12+
@NgModule({
13+
imports: [RouterModule.forRoot(RoutesApp)],
14+
exports: [RouterModule],
15+
})
16+
export class AppRoutingModule {}

src/app/app.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
</div>
1111
</div>
1212
</div>
13+

src/app/app.module.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
44

5+
import { AppRoutingModule } from './app-routing.module';
6+
7+
import {MatCardModule} from '@angular/material/card';
8+
59

610
import { AppComponent } from './app.component';
711
import { AccountComponent } from './account/account.component';
@@ -25,7 +29,10 @@ import { NewSnippetComponent } from './components/new-snippet/new-snippet.compon
2529
],
2630
imports: [
2731
BrowserModule,
28-
FormsModule
32+
FormsModule,
33+
AppRoutingModule,
34+
MatCardModule
35+
2936
],
3037
providers: [AccountService, LoggingService],
3138
bootstrap: [AppComponent]
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
<p>snippets works!</p>
1+
<mat-card>
2+
<mat-card-content>Simple card</mat-card-content>
3+
</mat-card>

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"typeRoots": [
1313
"node_modules/@types"
1414
],
15+
"paths": {
16+
"@angular/*": ["./node_modules/@angular/*"]
17+
},
1518
"lib": [
1619
"es2017",
1720
"dom"

0 commit comments

Comments
 (0)