Skip to content

Commit ac753f2

Browse files
committed
New component
1 parent 09ad247 commit ac753f2

File tree

8 files changed

+99
-4
lines changed

8 files changed

+99
-4
lines changed

APM-Start/package-lock.json

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

APM-Start/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.0.0",
1919
"@angular/platform-browser-dynamic": "~12.0.0",
2020
"@angular/router": "~12.0.0",
21+
"bootstrap": "^5.1.3",
22+
"font-awesome": "^4.7.0",
2123
"rxjs": "~6.6.0",
2224
"tslib": "^2.1.0",
2325
"zone.js": "~0.11.4"

APM-Start/src/app/app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div style="text-align: center">
2-
<h1>Welcome to {{ title }}!!</h1>
3-
... Starter Files ...
2+
<h1>{{ title }}</h1>
3+
<pm-products></pm-products>
44
</div>

APM-Start/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import { Component } from '@angular/core';
66
styleUrls: ['./app.component.css'],
77
})
88
export class AppComponent {
9-
title = 'Angular: Getting Started';
9+
title = 'Acme Product Management';
1010
}

APM-Start/src/app/app.module.ts

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

44
import { AppComponent } from './app.component';
5+
import { ProductListComponent } from './products/product-list.component';
56

67
@NgModule({
7-
declarations: [AppComponent],
8+
declarations: [AppComponent, ProductListComponent],
89
imports: [BrowserModule],
910
bootstrap: [AppComponent],
1011
})
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<div class="card">
2+
<div class="card-header">Product List</div>
3+
<div class="body">
4+
<div class="row">
5+
<div class="col-md-2">Filter by:</div>
6+
<div class="col-md-4">
7+
<input type="text" />
8+
</div>
9+
</div>
10+
<div class="row">
11+
<div class="col-md-6">
12+
<h4>Filtered by:</h4>
13+
</div>
14+
</div>
15+
</div>
16+
<div class="table-responsive">
17+
<table class="table">
18+
<thead>
19+
<tr>
20+
<th>
21+
<button class="btn btn-primary">Show Image</button>
22+
</th>
23+
<th>Product</th>
24+
<th>Code</th>
25+
<th>Available</th>
26+
<th>Price</th>
27+
<th>5 star rating</th>
28+
</tr>
29+
</thead>
30+
<tbody></tbody>
31+
</table>
32+
</div>
33+
</div>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'pm-products',
5+
templateUrl: './product-list.component.html',
6+
})
7+
export class ProductListComponent {}

APM-Start/src/styles.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/* You can add global styles to this file, and also import other style files */
2+
@import "~bootstrap/dist/css/bootstrap.min.css";
3+
@import "~font-awesome/css/font-awesome.min.css";
4+
25
div.card-header {
36
font-size: large;
47
}

0 commit comments

Comments
 (0)