Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I’ve been following this tutorial, to understand lazy loading, and below is my inference. Scenario 1: Services are provided by putting them in the providers array of a child module Scenario 2: Services are provided in a child module using the forRoot approach With scenario 1 in context,If a child ...

  • 0

service file import { Observable } from 'rxjs/Rx'; import { Http,Response} from '@angular/http'; import { Injectable } from '@angular/core'; import 'rxjs/add/operator/Map';@Injectable() export class VideoService {private geturl = '/api/videos'; constructor(private _http:Http) { }getvideos() { ...

  • 0

in service section of angular.io tutorial for angular2 I hit a method named of.for example : getHeroes(): Observable<Hero[]> { return of(HEROES); } or in below sample: getHero(id: number): Observable<Hero> { // Todo: send the message _after_ fetching the hero this.messageService.add(`HeroService: fetched ...

close