Skip to content

Commit

Permalink
fix(module: modal&input-item): add essential providers to make demo w…
Browse files Browse the repository at this point in the history
…ork (#421)
  • Loading branch information
fisherspy authored May 6, 2019
1 parent 0e2872e commit 8d0d1c3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion components/input-item/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ import { Toast } from 'ng-zorro-antd-mobile';
padding-bottom: 7px;
}
`
]
],
providers: [Toast]
})
export class DemoInputItemBasicComponent {
value = '';
Expand Down
2 changes: 1 addition & 1 deletion components/modal/demo/alert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { Modal, Toast } from 'ng-zorro-antd-mobile';
<WhiteSpace></WhiteSpace>
</WingBlank>
`,
providers: [Toast]
providers: [Toast, Modal]
})
export class DemoModalAlertComponent {
constructor(private _modal: Modal, private _toast: Toast) {}
Expand Down
2 changes: 1 addition & 1 deletion components/modal/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import { Modal, Toast } from 'ng-zorro-antd-mobile';
}
`
],
providers: [Toast]
providers: [Toast, Modal]
})
export class DemoModalBasicComponent {
state = {
Expand Down
2 changes: 1 addition & 1 deletion components/modal/demo/operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Modal, Toast } from 'ng-zorro-antd-mobile';
<WhiteSpace></WhiteSpace>
</WingBlank>
`,
providers: [Toast]
providers: [Toast, Modal]
})
export class DemoModalOperationComponent {
constructor(private _modal: Modal, private _toast: Toast) {}
Expand Down
2 changes: 1 addition & 1 deletion components/modal/demo/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Modal, Toast } from 'ng-zorro-antd-mobile';
<WhiteSpace></WhiteSpace>
</WingBlank>
`,
providers: [Toast]
providers: [Toast, Modal]
})
export class DemoModalPromptComponent {
constructor(private _modal: Modal, private _toast: Toast) {}
Expand Down

0 comments on commit 8d0d1c3

Please sign in to comment.