Friday, July 15, 2016

Angular2 fromPromise Does Not Exist On Type 'typeof Observable'

Problem:
In VS2015, using Angluar 2, getting the following error: fromPromise Does Not Exist On Type 'typeof Observable'

Solution:
Explicitly import fromPromise operator e.g.

import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/fromPromise';

3 comments:

  1. Wow, nice shot. :) Exactly what I needed!

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. y which they built up their first casual instruction of information of the sea streams, climate conditions, cruising practice, astronavigation, and star maps. More about the author

    ReplyDelete