ng2-table icon indicating copy to clipboard operation
ng2-table copied to clipboard

PAGINATION_DIRECTIVES doesn't work on demo.

Open gtvforever opened this issue 8 years ago • 4 comments

Hi, just copied the demo ts & html into my project. When i tried to launch the app with the command 'npm start'. i got below error message: '(20,9): error TS2305: Module '"c:/Users/ngtable/node_modules/ng2-bootstrap/ng2-bootstrap"' has no exported member 'PAGINATION_DIRECTIVES'. '

i already installed the ng-bootstrap 1.1.0.

Is there anything i missed?

Thank you in advance.

gtvforever avatar Sep 02 '16 07:09 gtvforever

https://github.com/valor-software/ng2-table/pull/268 ng2-tables will be update soon to work with new ng2-bootstrap version

otelnov avatar Sep 02 '16 14:09 otelnov

Thank you otelnov. Just want to double confirm that your fixing have fixed the issue i met, right?

gtvforever avatar Sep 02 '16 15:09 gtvforever

Yes. I installed "ng2-bootstrap": "1.1.0" too and using angular 2.0.0-rc5. Doesn't work too

RomanVolkov avatar Sep 04 '16 10:09 RomanVolkov

Do you need to execute

npm i ng2-bootstrap --save

after this include in your module:

import {PaginationComponent, PaginationConfig} from 'ng2-bootstrap/ng2-bootstrap';

And incluede in your app.module

import {PaginationComponent, PaginationConfig} from 'ng2-bootstrap/ng2-bootstrap';

  imports: [
        PaginationComponent
    ],
providers: [
        PaginationConfig
    ]

ghost avatar Jul 27 '18 13:07 ghost