javascript - Angular 2 mode = "Observable" what does it do? -


i working on angular 2 project , came across tutorial used format. using observable interact database , retrieve data , component subscribing service happening. tutorial had

mode = 'observable';

what do? can't seem find online. can assume does, necessary?

export class taxratelookupcomponent {   errormessage: string;   mode = 'observable';   taxrate: taxrate[];    constructor(     private taxratelookupservice: taxratelookupservice,     public route: activatedroute,   ) {}     gettaxrate(search) {     this.taxratelookupservice.gettaxrate(search)                       .subscribe(                         taxrate => this.taxrate = taxrate,                         error =>  this.errormessage = <any>error);     }   } 


Comments

Popular posts from this blog

4x4 Matrix in Python -

python - PyInstaller UAC not working in onefile mode -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -