What Angular 2 version to use?

Hi All,

I am trying to develop an app that uses forms, however, I get the following error:

  *It looks like you're using the old forms module. This will be opt-in in the next RC, and
      will eventually be removed in favor of the new forms module. For more information, see:
      https://docs.google.com/document/u/1/d/1RIezQqE4aEhBRmArIAS1mRIZtWFf6JxN_7B4meyWK0Y/pub

So looking at the provided link, I gather I need to install angular/forms

I install angular/forms What Angular RC should I use, rc5 is the latest I think?

I updated all my RCs to 5 and it gets no errors at build time.

it’s better to update your ionic to 2.0.0.beta11 and @angular/core@2.0.0-rc.4 in order to get all latest functionality and using with same forms will work greatly.

follow these instructions on how to upgrade to Beta 11

and for reference you can go through this topic on forum

NOTE: Kindly keep backup of your project which is may be you are working on ionic2 beta10.
Because in my case when I upgrade from beta10 to beta11 my sidemenu not working…

Thanks

What about updating to the following?

"@angular/common": "^2.0.0-rc.5",
"@angular/compiler": "^2.0.0-rc.5",
"@angular/core": "^2.0.0-rc.5",
"@angular/forms": "^0.3.0",
"@angular/http": "^2.0.0-rc.5",
"@angular/platform-browser": "^2.0.0-rc.5",
"@angular/platform-browser-dynamic": "^2.0.0-rc.5",

After upgrading to Angular 2 RC5, I get the following error:

Unhandled Promise rejection:
EXCEPTION: Error in ./Toolbar class Toolbar - inline template:0:0
ORIGINAL EXCEPTION: No provider for Navbar!

Is it better to rather use RC4 with Ionic 2?

I am using: Ionic 2.0.0-beta.32

I have not familiar with RC5 and haven’t used yet.

Currently, I switched to RC4.

Thanks, I will revert to RC4.

Yeah, please do not upgrade to RC5 yet. RC5 includes many breaking changes that we are working on for beta 12.

2 Likes

I am using Ionic 2.0.0-beta.32, seems to work fine with RC4.

Ionic 2.0.0-beta.32 is not the framework version, but the CLI version.

The framework version is in the package.json.

1 Like

Since this thread brought up Angular 2 RC5 in connection to Ionic 2 Beta 12. I was wondering on if the team was looking at the new @NgModule decorator that was introduced in that release. Was reading about it and it seems pretty cool.

Do you know when the beta 12 be released? I need to use a few things that they have in Angular RC5. Any information is appreciated. Thanks.

4 Likes

By the way, with the beta 12, ionicBootstrap will change? because with rc5 there’s a big breaking change with bootstrap.

Beta 12 will be released when it is ready.

We will post any changes once it is released.

2 Likes