Bob
Bob

Reputation: 1679

which version of angular is IONIC 2 using ? this is ionic 2 implementation specific

This question is IONIC 2 specific - ionic packages and uses angular in it's own way.

ionic 2.2.3

new hello world app

either served or on device

chrome dev tools / debugger

angular.version doesn't work- angular is not defined

Can I / How do I get the angular version number (preferably in the console) ?

Upvotes: 1

Views: 5017

Answers (2)

Ivar Reukers
Ivar Reukers

Reputation: 7719

The version currently in use of Angular can be found in your package.json file. The value after @angular/core is you angular version (unless you have manually overridden it)

Upvotes: 4

Alexander Trakhimenok
Alexander Trakhimenok

Reputation: 6278

Angular version is specified in package.json in your project root directory.

Ionic 2.3.0 used Angular 2.4.8: https://github.com/driftyco/ionic/blob/e07aad460d2c3e1c3f3395dd5ecdcfb7d067c72e/package.json#L28

Latest Ionic 3.0.1 uses Angular 4.0.0 be default: https://github.com/driftyco/ionic/blob/0182f070611224a05219e3a8c591173f017cc2b4/package.json#L28

But you can change it to 4.1.0 if wish.

I advise you to upgrade to latest Ionic version as there are quite a lot of changes & bug fixes.

Upvotes: 1

Related Questions