Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

position setup in app.module #342

Open
YacineAcme opened this issue Dec 11, 2018 · 0 comments
Open

position setup in app.module #342

YacineAcme opened this issue Dec 11, 2018 · 0 comments

Comments

@YacineAcme
Copy link

YacineAcme commented Dec 11, 2018

I have this in my app.module

const options = {
  maxStack: 1
};

@NgModule({
....
imports:[
...
    SimpleNotificationsModule.forRoot(options),
]

This works, however if I want to add the position attribute as:

const options = {
  position: ['top', 'right'],
  maxStack: 1
};

A compiler error comes up saying that

Argument of type '{ position: string[]; maxStack: number; }' is not assignable to parameter of type 'Options'.
  Types of property 'position' are incompatible.
    Type 'string[]' is not assignable to type 'Position'.
      Property '0' is missing in type 'string[]'. [2345]

Is this normal behaviour? is it not possible to setup position from app.module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant