Skip to Main Content
Angular: instalacja i działanie.
book

Angular: instalacja i działanie.

by Shyam Seshadri
October 2018
Intermediate to advanced content levelIntermediate to advanced
318 pages
9h 9m
Polish
APN Promise
Content preview from Angular: instalacja i działanie.
Tworzenie własnej usługi wAngular | 167
})
export class CreateStockComponent {
public stock: Stock;
public confirmed = false;
public exchanges = ['NYSE', 'NASDAQ', 'OTHER'];
constructor(private stockService: StockService,
public messageService: MessageService) {
1
this.stock = new Stock('', '', 0, 0, 'NASDAQ');
}
setStockPrice(price) {
this.stock.price = price;
this.stock.previousPrice = price;
}
createStock(stockForm) {
if (stockForm.valid) {
let created = this.stockService.createStock(this.stock);
if (created) {
2
this.messageService.message =
'Successfully created stock with stock code: ' +
this.stock.code;
this.stock = ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

AngularJS. Szybkie wprowadzenie

AngularJS. Szybkie wprowadzenie

Shyam Seshadri, Brad Green
Programowanie w JavaScript Rusz głową!

Programowanie w JavaScript Rusz głową!

Eric Freeman, Elisabeth Robson

Publisher Resources

ISBN: 9788375413618