You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just started out to develop with Angular2.
Currently I'm extending an existing project to implement ng2-translate and I just can't get it to work.
First of all, the method bootstrap does not exist. It doesn't get imported from any of your calls either. So.. I have no idea about it. More information on that would be appreciated,
Second - How can you use TranslateService before you import it? Thats not going to work AFAIK.
Any help to resolve this issue is very much appreciated.
import {Component, OnInit, Injectable} from 'angular2/core';
import {RouteConfig, Router, ROUTER_DIRECTIVES} from 'angular2/router';
import {FORM_PROVIDERS} from 'angular2/common';
import {HTTP_PROVIDERS} from 'angular2/http';
import {TranslateService, TranslatePipe} from 'ng2-translate/ng2-translate';
The text was updated successfully, but these errors were encountered:
bootstrap is the native angular2 function that you have to call to start your application. I will update the readme to add the import for that (it's: import {bootstrap} from 'angular2/platform/browser';).
And then, what do you mean by "How can you use TranslateService before you import it" ?
Ah yes I see what you mean, I updated the readme which was outdated anyway (wrong imports since beta 1).
The doc should be more clear for you now, thanks for noticing that :)
Hello there!
I just started out to develop with Angular2.
Currently I'm extending an existing project to implement ng2-translate and I just can't get it to work.
First of all, the method
bootstrap
does not exist. It doesn't get imported from any of your calls either. So.. I have no idea about it. More information on that would be appreciated,Second - How can you use TranslateService before you import it? Thats not going to work AFAIK.
Any help to resolve this issue is very much appreciated.
The text was updated successfully, but these errors were encountered: