Resources
-Here are some links to help you get started:
- - - - -Next Steps
-What do you want to do next with your app?
- - - -ng generate component xyz-
ng add @angular/material-
ng add @angular/pwa-
ng add _____-
ng test-
ng build --prod-
diff --git a/angular.json b/angular.json index 1fd3a52..7c0170d 100644 --- a/angular.json +++ b/angular.json @@ -27,7 +27,10 @@ "tsConfig": "tsconfig.app.json", "aot": true, "assets": ["src/favicon.ico", "src/assets"], - "styles": ["src/styles.scss"], + "styles": [ + "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", + "src/styles.scss" + ], "scripts": [] }, "configurations": { @@ -85,7 +88,10 @@ "tsConfig": "tsconfig.spec.json", "karmaConfig": "karma.conf.js", "assets": ["src/favicon.ico", "src/assets"], - "styles": ["src/styles.scss"], + "styles": [ + "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", + "src/styles.scss" + ], "scripts": [] } }, diff --git a/package-lock.json b/package-lock.json index ea8bd0e..9fd4d7e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,12 @@ "version": "0.0.0", "dependencies": { "@angular/animations": "11.2.10", + "@angular/cdk": "^11.2.12", "@angular/common": "11.2.10", "@angular/compiler": "11.2.10", "@angular/core": "11.2.10", "@angular/forms": "11.2.10", + "@angular/material": "^11.2.12", "@angular/platform-browser": "11.2.10", "@angular/platform-browser-dynamic": "11.2.10", "@angular/router": "11.2.10", @@ -358,6 +360,27 @@ "@angular/core": "11.2.10" } }, + "node_modules/@angular/cdk": { + "version": "11.2.12", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-11.2.12.tgz", + "integrity": "sha512-LImCQQ7n5OnTGXBAx1BaHgBBbdXiEtsNcHk5RvVURya9sswRcXRoa48EG3RyuT8mtqWsUdOX9+v4nCINLG4hZA==", + "dependencies": { + "tslib": "^2.0.0" + }, + "optionalDependencies": { + "parse5": "^5.0.0" + }, + "peerDependencies": { + "@angular/common": "^11.0.0 || ^12.0.0-0", + "@angular/core": "^11.0.0 || ^12.0.0-0" + } + }, + "node_modules/@angular/cdk/node_modules/parse5": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", + "optional": true + }, "node_modules/@angular/cli": { "version": "11.2.10", "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-11.2.10.tgz", @@ -497,6 +520,21 @@ "rxjs": "^6.5.3" } }, + "node_modules/@angular/material": { + "version": "11.2.12", + "resolved": "https://registry.npmjs.org/@angular/material/-/material-11.2.12.tgz", + "integrity": "sha512-n3HDKoM552jLcmxtpTYzMUzV6V9vUBKyNs7SNdUfjuK00VJlTWMu03g/QWOj2Y9KftOuDUa8+N2XodwAr+jtCw==", + "dependencies": { + "tslib": "^2.0.0" + }, + "peerDependencies": { + "@angular/animations": "^11.0.0 || ^12.0.0-0", + "@angular/cdk": "11.2.12", + "@angular/common": "^11.0.0 || ^12.0.0-0", + "@angular/core": "^11.0.0 || ^12.0.0-0", + "@angular/forms": "^11.0.0 || ^12.0.0-0" + } + }, "node_modules/@angular/platform-browser": { "version": "11.2.10", "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-11.2.10.tgz", @@ -19173,6 +19211,23 @@ "tslib": "^2.0.0" } }, + "@angular/cdk": { + "version": "11.2.12", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-11.2.12.tgz", + "integrity": "sha512-LImCQQ7n5OnTGXBAx1BaHgBBbdXiEtsNcHk5RvVURya9sswRcXRoa48EG3RyuT8mtqWsUdOX9+v4nCINLG4hZA==", + "requires": { + "parse5": "^5.0.0", + "tslib": "^2.0.0" + }, + "dependencies": { + "parse5": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", + "optional": true + } + } + }, "@angular/cli": { "version": "11.2.10", "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-11.2.10.tgz", @@ -19272,6 +19327,14 @@ "tslib": "^2.0.0" } }, + "@angular/material": { + "version": "11.2.12", + "resolved": "https://registry.npmjs.org/@angular/material/-/material-11.2.12.tgz", + "integrity": "sha512-n3HDKoM552jLcmxtpTYzMUzV6V9vUBKyNs7SNdUfjuK00VJlTWMu03g/QWOj2Y9KftOuDUa8+N2XodwAr+jtCw==", + "requires": { + "tslib": "^2.0.0" + } + }, "@angular/platform-browser": { "version": "11.2.10", "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-11.2.10.tgz", diff --git a/package.json b/package.json index 9dabd53..331a476 100644 --- a/package.json +++ b/package.json @@ -14,10 +14,12 @@ "private": true, "dependencies": { "@angular/animations": "11.2.10", + "@angular/cdk": "^11.2.12", "@angular/common": "11.2.10", "@angular/compiler": "11.2.10", "@angular/core": "11.2.10", "@angular/forms": "11.2.10", + "@angular/material": "^11.2.12", "@angular/platform-browser": "11.2.10", "@angular/platform-browser-dynamic": "11.2.10", "@angular/router": "11.2.10", diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index f3daf25..ebdffa8 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,7 +1,14 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -const routes: Routes = []; +import { WelcomeComponent } from './welcome/welcome.component'; +import { App1Component } from './app1/app1.component'; + +const routes: Routes = [ + { path: '', redirectTo: '/welcome', pathMatch: 'full' }, + { path: 'welcome', component: WelcomeComponent }, + { path: 'app1', component: App1Component }, +]; @NgModule({ imports: [RouterModule.forRoot(routes)], diff --git a/src/app/app.component.html b/src/app/app.component.html index 4bb537b..4c4ebc3 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,908 +1,11 @@ - - - - - - - - - - - - -
- -Here are some links to help you get started:
- - - - -What do you want to do next with your app?
- - - -ng generate component xyz-
ng add @angular/material-
ng add @angular/pwa-
ng add _____-
ng test-
ng build --prod-
app1 works!
diff --git a/src/app/app1/app1.component.scss b/src/app/app1/app1.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/app1/app1.component.spec.ts b/src/app/app1/app1.component.spec.ts new file mode 100644 index 0000000..dd60d80 --- /dev/null +++ b/src/app/app1/app1.component.spec.ts @@ -0,0 +1,24 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { App1Component } from './app1.component'; + +describe('App1Component', () => { + let component: App1Component; + let fixture: ComponentFixturewelcome works!
diff --git a/src/app/welcome/welcome.component.scss b/src/app/welcome/welcome.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/welcome/welcome.component.spec.ts b/src/app/welcome/welcome.component.spec.ts new file mode 100644 index 0000000..90108f1 --- /dev/null +++ b/src/app/welcome/welcome.component.spec.ts @@ -0,0 +1,24 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { WelcomeComponent } from './welcome.component'; + +describe('WelcomeComponent', () => { + let component: WelcomeComponent; + let fixture: ComponentFixture