ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

dropdowns - not working with angular2-beta

Open sspranay opened this issue 10 years ago • 11 comments

I am using the angular2 5 min quickstart.

When I try to use the bare-minimum markups and Component provided for the drowdowns directive, I encouter 3 issues

  1. The Caret doesn't appear
  2. The dropdowns don't work
  3. Split-button caret appears but half the size of primary action button.

Here are my dependencies, mostly from the angular2 5 min quickstart:

"dependencies": { "angular2": "2.0.0-beta.0", "bootstrap": "https://github.com/twbs/bootstrap/tarball/v4-dev", "es6-promise": "^3.0.2", "es6-shim": "^0.33.3", "ng2-bootstrap": "^1.0.1-beta.1", "reflect-metadata": "0.1.2", "rxjs": "5.0.0-beta.0", "systemjs": "0.19.6", "zone.js": "0.5.10" },

I am not aware of any protocol to be followed to raise a concern/issue. My apologies!

sspranay avatar Jan 25 '16 18:01 sspranay

Answer in your issue, you are using angular2 beta 0 with ng2 bootstrap beta 1, there are breaking changes between them :(

valorkin avatar Jan 25 '16 21:01 valorkin

I will issue a PR to update an angular 2 quick start

valorkin avatar Jan 25 '16 21:01 valorkin

Thanks for pointing out the problem. Can you quickly tell me the correct version numbers (for both angular2 and ng-bootstrap) that work well together?

sspranay avatar Jan 26 '16 00:01 sspranay

Are there any plans to update for angular2-beta.0 or angular2-beta.1 ?? Running into same issue but would really love to use this library!

bbrink68 avatar Jan 28 '16 14:01 bbrink68

@bbrink68 plunkr with issue reproduce will be very usefull http://plnkr.co/edit/2lDiJaezvCOcSyd2dd2Q?p=preview

valorkin avatar Jan 28 '16 14:01 valorkin

Here is the plunkr http://plnkr.co/edit/YBenGHBZCeDLbpfzqevM?p=preview

If I update the version number to what you suggested in the quickstart update note - 2.0.1.beta.0, it breaks completely. Apparently angular2 1.beta is yet not out.

Thanks!

sspranay avatar Feb 03 '16 22:02 sspranay

@sspranay https://code.angularjs.org/ version is not correct by the link you can see available versions of ng1 and ng2

valorkin avatar Feb 04 '16 13:02 valorkin

Apologies @valorkin if this sounds redundant, but can you please point out which angular2 version number to use to make it work?

sspranay avatar Feb 04 '16 17:02 sspranay

no worries, you can always check current recommended ng2 version in package.json https://github.com/valor-software/ng2-bootstrap/blob/master/package.json#L43

valorkin avatar Feb 04 '16 19:02 valorkin

I have reopened the issue #207

otabekgb avatar Feb 18 '16 15:02 otabekgb

Sorry issue #205

otabekgb avatar Feb 18 '16 15:02 otabekgb