-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
197 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.vendor-name { | ||
background: url('/assets/img/pop-up-pizza.jpg') no-repeat center center fixed; | ||
height: 333px; | ||
background-size: cover; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div class="container center-block"> | ||
<div class="row"> | ||
<ul class="list-inline center-block"> | ||
<li *ngFor="let item of vendor.catagories">{{item.catagory}}</li> | ||
</ul> | ||
</div> | ||
<div class="row vendor-name"> | ||
<h1>{{vendor.name}}</h1> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Component, OnInit } from "@angular/core"; | ||
import { VendorDetailsService } from "./vendor-details.service"; | ||
|
||
|
||
@Component({ | ||
selector: 'vendor-details', | ||
templateUrl: 'app/vendor-details/vendor-details.component.html', | ||
styleUrls: ['app/vendor-details/vendor-details.component.css'], | ||
providers: [VendorDetailsService] | ||
}) | ||
|
||
|
||
|
||
export class VendorDetailsComponent implements OnInit { | ||
vendor: any; | ||
|
||
ngOnInit(){ | ||
this.vendor = this.vendorDetailsService.vendorDetails; | ||
} | ||
|
||
constructor(private vendorDetailsService: VendorDetailsService){ | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
import { Injectable } from '@angular/core'; | ||
|
||
@Injectable() | ||
export class VendorDetailsService { | ||
vendorDetails = { | ||
name: "Pop up Pizza", | ||
address: "1 S Main St, Las Vegas, NV", | ||
catagories: [ | ||
{ | ||
catagory: "SIGNATURE PIZZAS", | ||
itemlist: [ | ||
{ | ||
item: "The 18 lb.", | ||
price: 14.99 | ||
}, | ||
{ | ||
item: "The Main St", | ||
price: 15.99 | ||
}, | ||
{ | ||
item: "The Goodman", | ||
price: 19.99 | ||
}, | ||
{ | ||
item: "The Newport", | ||
price: 19.99 | ||
}, | ||
{ | ||
item: "The Hawaiian", | ||
price: 19.99 | ||
}, | ||
{ | ||
item: "The White Chape", | ||
price: 21.99 | ||
}, | ||
{ | ||
item: "The Plaza", | ||
price: 21.99 | ||
}, | ||
{ | ||
item: "TheScintas", | ||
price: 21.99 | ||
}, | ||
{ | ||
item: "The Soho", | ||
price: 24.99 | ||
}, | ||
{ | ||
item: "TheWestern", | ||
price: 21.99 | ||
} | ||
] | ||
}, | ||
{ | ||
catagory: "SIGNATURE PIZZAS", | ||
itemlist: [ | ||
{ | ||
item: "The 18 lb.", | ||
price: 14.99 | ||
}, | ||
{ | ||
item: "The Main St", | ||
price: 15.99 | ||
}, | ||
{ | ||
item: "The Goodman", | ||
price: 19.99 | ||
}, | ||
{ | ||
item: "The Newport", | ||
price: 19.99 | ||
}, | ||
{ | ||
item: "The Hawaiian", | ||
price: 19.99 | ||
}, | ||
{ | ||
item: "The White Chape", | ||
price: 21.99 | ||
}, | ||
{ | ||
item: "The Plaza", | ||
price: 21.99 | ||
}, | ||
{ | ||
item: "TheScintas", | ||
price: 21.99 | ||
}, | ||
{ | ||
item: "The Soho", | ||
price: 24.99 | ||
}, | ||
{ | ||
item: "TheWestern", | ||
price: 21.99 | ||
} | ||
] | ||
}, | ||
{ | ||
catagory: "SIGNATURE PIZZAS", | ||
itemlist: [ | ||
{ | ||
item: "The 18 lb.", | ||
price: 14.99 | ||
}, | ||
{ | ||
item: "The Main St", | ||
price: 15.99 | ||
}, | ||
{ | ||
item: "The Goodman", | ||
price: 19.99 | ||
}, | ||
{ | ||
item: "The Newport", | ||
price: 19.99 | ||
}, | ||
{ | ||
item: "The Hawaiian", | ||
price: 19.99 | ||
}, | ||
{ | ||
item: "The White Chape", | ||
price: 21.99 | ||
}, | ||
{ | ||
item: "The Plaza", | ||
price: 21.99 | ||
}, | ||
{ | ||
item: "TheScintas", | ||
price: 21.99 | ||
}, | ||
{ | ||
item: "The Soho", | ||
price: 24.99 | ||
}, | ||
{ | ||
item: "TheWestern", | ||
price: 21.99 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
|
||
getVendorDetails(){ | ||
return this.vendorDetails; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.