Skip to content

Commit 77f7079

Browse files
committed
initialize NgRx
1 parent d171e31 commit 77f7079

20 files changed

+376
-602
lines changed

angular.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"src/assets"
2525
],
2626
"styles": [
27+
"node_modules/bootstrap/dist/css/bootstrap.min.css",
2728
"src/styles.css"
2829
],
2930
"scripts": []

package-lock.json

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

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@
1616
"@angular/compiler": "~9.1.11",
1717
"@angular/core": "~9.1.11",
1818
"@angular/forms": "~9.1.11",
19+
"@angular/localize": "~9.1.11",
1920
"@angular/platform-browser": "~9.1.11",
2021
"@angular/platform-browser-dynamic": "~9.1.11",
2122
"@angular/router": "~9.1.11",
23+
"@ng-bootstrap/ng-bootstrap": "^6.2.0",
24+
"@ngrx/store": "^10.1.1",
2225
"angular-cli-ghpages": "^1.0.0-rc.1",
23-
"rxjs": "~6.5.4",
26+
"bootstrap": "^4.5.3",
27+
"lodash": "^4.17.20",
28+
"rxjs": "^6.5.5",
2429
"tslib": "^1.10.0",
2530
"zone.js": "~0.10.2"
2631
},
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { createAction } from '@ngrx/store';
2+
3+
export const incrementClickCount = createAction('[Click Count] Increment');
4+
export const resetClickCount = createAction('[Click Count] Reset');
5+
6+

src/app/app-routing.module.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import { NgModule } from '@angular/core';
22
import { Routes, RouterModule } from '@angular/router';
3+
import { HomePageComponent } from './containers/home-page/home-page.component';
34

45

5-
const routes: Routes = [];
6+
const routes: Routes = [
7+
{component: HomePageComponent, path:''}
8+
];
69

710
@NgModule({
811
imports: [RouterModule.forRoot(routes)],

0 commit comments

Comments
 (0)