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've updated to RC.6 and Toasty is not adjusting well!
In the Component decorator, I'm getting error on the line where I'm passing 'ToastyComponent' into the directives array. I would prefer to add a module in to my app.module.ts file instead...
import { Component } from '@angular/core';
import { ToastyComponent } from 'ng2-toasty';
import { Auth } from './auth.service';
import { NotificationService } from './shared/notification.service';
@Component({
moduleId: module.id,
selector: 'my-app',
templateUrl: 'app.component.html',
directives: [ ToastyComponent ],
providers: [
Auth,
NotificationService]
})
export class AppComponent {
constructor(private _auth: Auth) {
}
}
The text was updated successfully, but these errors were encountered:
On another note. You might want to review the RC6 changes. They've removed a lot of deprecated pieces. For instance, directives can no longer be declared in the Component decorator.
If you would like to get your app up and running using the latest npm build, what I've done is created a shared module (suggested by the angular2 documentation) and exported ToastComponent and ToastyComponent. This SharedModule is then imported in the modules you want to use ng2-toasty in.
I've updated to RC.6 and Toasty is not adjusting well!
In the Component decorator, I'm getting error on the line where I'm passing 'ToastyComponent' into the directives array. I would prefer to add a module in to my app.module.ts file instead...
The text was updated successfully, but these errors were encountered: