26 lines
483 B
TypeScript
26 lines
483 B
TypeScript
import { Component } from '@angular/core';
|
|
|
|
import { CUSTOMERS } from './customers';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.css']
|
|
})
|
|
export class AppComponent {
|
|
customers = CUSTOMERS;
|
|
|
|
currentCustomer = 'Maria';
|
|
title = 'Featured product:';
|
|
itemImageUrl = '../assets/pottedPlant.png';
|
|
|
|
recommended = 'You might also like:';
|
|
itemImageUrl2 = '../assets/lamp.png';
|
|
|
|
|
|
|
|
getVal(): number { return 2; }
|
|
|
|
|
|
}
|