Ngx-bootstrap: Done: Please add support for Angular 4

Created on 24 Mar 2017  路  32Comments  路  Source: valor-software/ngx-bootstrap

Currently when updating to angular 4 we are getting the below warning:

npm WARN [email protected] requires a peer of @angular/common@^2.3.1 but none was installed.
npm WARN [email protected] requires a peer of @angular/compiler@^2.3.1 but none was installed.
npm WARN [email protected] requires a peer of @angular/core@^2.3.1 but none was installed.
npm WARN [email protected] requires a peer of @angular/forms@^2.3.1 but none was installed.

Most helpful comment

alos, don't forget to replace <template> tags by <ng-template>.

All 32 comments

Hello, I'm going to open a PR for this!

It is already available in @beta version

I tried the beta, but it seems that it relies on angular RC, but stable is already out there.

screen shot 2017-03-26 at 21 38 43

Ignore this, it is just a peer dependencies

Could simply relax peer dep to >=4.0.0

alos, don't forget to replace <template> tags by <ng-template>.

I don't want to drop backwards compatibility :(

Well, I think you should cut a version where you stop worry about Angular2 and focus on Angular4. @valorkin

@valorkin 4.0.0 is out - could you update @beta version to use the stable ng 4 release?

The peer dependency breaks compatibility with npm shrinkwrap for those on ng 4.0.0.

Yep, I will cut down 2 versions tomorrow

With new dropdown and ng v4

Can we use ">2.0.0" instead of "^4.0.0" to avoid this issue in future angular versions?

What about: "^2.0.0" || ">4.0.0"
So 2 and 4 both are supported,