Skip to content

Commit eb7c9a0

Browse files
committed
Added login module
1 parent 3362705 commit eb7c9a0

24 files changed

Lines changed: 282 additions & 506 deletions

angular.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@
3131
"src/assets"
3232
],
3333
"styles": [
34-
"src/styles.sass"
34+
"src/styles.sass",
35+
"./node_modules/bootstrap/dist/css/bootstrap.min.css"
3536
],
36-
"scripts": []
37+
"scripts": [
38+
"./node_modules/@popperjs/core/dist/umd/popper.min.js",
39+
"./node_modules/bootstrap/dist/js/bootstrap.min.js"
40+
]
3741
},
3842
"configurations": {
3943
"production": {

package-lock.json

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

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"@angular/platform-browser": "~12.1.0-",
1919
"@angular/platform-browser-dynamic": "~12.1.0-",
2020
"@angular/router": "~12.1.0-",
21+
"@popperjs/core": "2.11.2",
22+
"bootstrap": "5.1.3",
2123
"rxjs": "~6.6.0",
2224
"tslib": "^2.2.0",
2325
"zone.js": "~0.11.4"

src/app/app-routing.module.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
3+
4+
const loginModule = () => import('@app/login/login.module').then(m => m.LoginModule);
35

4-
const routes: Routes = [];
6+
const routes: Routes = [
7+
{ path: '', redirectTo: '/login', pathMatch: 'full' },
8+
{ path: 'login', loadChildren: loginModule }
9+
];
510

611
@NgModule({
712
imports: [RouterModule.forRoot(routes)],

0 commit comments

Comments
 (0)