Skip to content

Commit

Permalink
fix(modal): fix typo in MODAL_DIRECTIVES (#630)
Browse files Browse the repository at this point in the history
It should be "DIRECTIVES" (with an "I"), not "DIRECTVES".
  • Loading branch information
adrienverge authored and valorkin committed Jun 23, 2016
1 parent df85712 commit 8c4c125
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export * from './modal/modal.component';
import {ModalBackdropComponent} from './modal/modal-backdrop.component';
import {ModalDirective} from './modal/modal.component';

export const MODAL_DIRECTVES = [
export const MODAL_DIRECTIVES = [
ModalDirective, ModalBackdropComponent
];
4 changes: 2 additions & 2 deletions components/modal/title.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ Base specifications: [bootstrap 3](http://getbootstrap.com/javascript/#modals) o
- Don't forget to add view provider

```typescript
import {MODAL_DIRECTVES, BS_VIEW_PROVIDERS} from 'ng2-bootstrap/ng2-bootstrap';
import {MODAL_DIRECTIVES, BS_VIEW_PROVIDERS} from 'ng2-bootstrap/ng2-bootstrap';

@Component({
selector: 'modal-demo',
directives: [MODAL_DIRECTVES],
directives: [MODAL_DIRECTIVES],
viewProviders:[BS_VIEW_PROVIDERS],
template: template
})
Expand Down
4 changes: 2 additions & 2 deletions demo/components/modal/modal-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import {Component} from '@angular/core';
import {CORE_DIRECTIVES} from '@angular/common';

// todo: change to ng2-bootstrap
import {MODAL_DIRECTVES, BS_VIEW_PROVIDERS} from '../../../ng2-bootstrap';
import {MODAL_DIRECTIVES, BS_VIEW_PROVIDERS} from '../../../ng2-bootstrap';
// webpack html imports
let template = require('./modal-demo.html');

@Component({
selector: 'modal-demo',
directives: [MODAL_DIRECTVES, CORE_DIRECTIVES],
directives: [MODAL_DIRECTIVES, CORE_DIRECTIVES],
viewProviders:[BS_VIEW_PROVIDERS],
template: template
})
Expand Down
4 changes: 2 additions & 2 deletions ng2-bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {CAROUSEL_DIRECTIVES} from './components/carousel';
import {CollapseDirective} from './components/collapse';
import {DATEPICKER_DIRECTIVES} from './components/datepicker';
import {DROPDOWN_DIRECTIVES} from './components/dropdown';
import {MODAL_DIRECTVES} from './components/modal';
import {MODAL_DIRECTIVES} from './components/modal';
import {PAGINATION_DIRECTIVES} from './components/pagination';
import {PROGRESSBAR_DIRECTIVES} from './components/progressbar';
import {RatingComponent} from './components/rating';
Expand Down Expand Up @@ -47,7 +47,7 @@ export default {
CollapseDirective,
DATEPICKER_DIRECTIVES,
DROPDOWN_DIRECTIVES,
MODAL_DIRECTVES,
MODAL_DIRECTIVES,
PAGINATION_DIRECTIVES,
PROGRESSBAR_DIRECTIVES,
RatingComponent,
Expand Down

0 comments on commit 8c4c125

Please sign in to comment.