Is this the correct usage of this function? I seem to be getting an error " Build: Property 'subscribe' does not exist on type '() => Observable<{}>'"
this.adalService.acquireToken("http://whatever")
.subscribe(
data => {
alert(data);
},
error => {
alert('error!');
}
);
Is this the correct usage of this function? I seem to be getting an error " Build: Property 'subscribe' does not exist on type '() => Observable<{}>'"
this.adalService.acquireToken("http://whatever")
.subscribe(
data => {
alert(data);
},
error => {
alert('error!');
}
);