Skip to content

Commit 2890ffd

Browse files
committed
initial setup done
1 parent ef9c073 commit 2890ffd

File tree

12 files changed

+138
-4
lines changed

12 files changed

+138
-4
lines changed

angular.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119
}
120120
}
121121
}
122-
}},
123-
"defaultProject": "angular-random-card"
124-
}
122+
}
123+
},
124+
"defaultProject": "angular-random-card",
125+
"cli": {
126+
"analytics": false
127+
}
128+
}

package-lock.json

Lines changed: 56 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"@angular/platform-browser": "~9.1.13",
2020
"@angular/platform-browser-dynamic": "~9.1.13",
2121
"@angular/router": "~9.1.13",
22+
"@fortawesome/angular-fontawesome": "^0.8.1",
23+
"@fortawesome/fontawesome-svg-core": "^1.2.34",
24+
"@fortawesome/free-solid-svg-icons": "^5.15.2",
25+
"bootstrap": "^4.5.3",
26+
"ngx-toastr": "^13.2.0",
2227
"rxjs": "~6.5.4",
2328
"tslib": "^1.10.0",
2429
"zone.js": "~0.10.2"

src/app/app.component.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.app {
2+
min-height: 100vh;
3+
}

src/app/app.module.ts

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

44
import { AppComponent } from './app.component';
5+
import { CardComponent } from './card/card.component';
56

67
@NgModule({
78
declarations: [
8-
AppComponent
9+
AppComponent,
10+
CardComponent
911
],
1012
imports: [
1113
BrowserModule

src/app/card/card.component.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.card {
2+
margin-top: 125px;
3+
}
4+
img {
5+
margin-top: -80px;
6+
}

src/app/card/card.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>card works!</p>

src/app/card/card.component.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-card',
5+
templateUrl: './card.component.html',
6+
styleUrls: ['./card.component.css']
7+
})
8+
export class CardComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit(): void {
13+
}
14+
15+
}

src/app/user.service.spec.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { TestBed } from '@angular/core/testing';
2+
3+
import { UserService } from './user.service';
4+
5+
describe('UserService', () => {
6+
let service: UserService;
7+
8+
beforeEach(() => {
9+
TestBed.configureTestingModule({});
10+
service = TestBed.inject(UserService);
11+
});
12+
13+
it('should be created', () => {
14+
expect(service).toBeTruthy();
15+
});
16+
});

src/app/user.service.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { Injectable } from '@angular/core';
2+
3+
@Injectable({
4+
providedIn: 'root'
5+
})
6+
export class UserService {
7+
8+
constructor() { }
9+
}

0 commit comments

Comments
 (0)