如何在 Ionic Framework 中更新 Angular 的版本?

问题描述:

我的 Angular 过滤器有一些问题,大家都说:是因为你没有使用 angular 1.3.8 或更高版本,我刚刚通过在控制台上执行 angular.version 来实现我的版本和:Object {full: "1.3.6", major: 1, minor: 3, dot: 6, codeName: "robofunky-danceblaster"} 出现了,那么,我该如何更新到 1.3.8至少 ?或更新到最新版本?

I am having some issues with the Angular filters, everyone says: is because you are not using angular 1.3.8 or above versions, I just realized my version by doing angular.version on the console and: Object {full: "1.3.6", major: 1, minor: 3, dot: 6, codeName: "robofunky-danceblaster"} comes up, so, how do I update to 1.3.8 at least ? or update to the latest ?

有没有办法做到这一点,或者我必须使用那个版本的 Angular 直到 Ionic 的人更新它?

Is there a way to do that, or I have to work with that version of Angular until the Ionic people updates it ?

ionic.bundle.js 是以下内容的串联:

  • ionic.js
  • angular.js
  • angular-animate.js
  • angular-sanitize.js
  • angular-ui-router.js
  • ionic-angular.js

如果您想使用比捆绑包中包含的版本更新的 AngularJS 版本,您可以将它们与首选版本分开包含(而不是加载 ionic.bundle.js).

If you want to use a newer AngularJS version than the one included in the bundle you can include them separately with preferred version (instead of loading ionic.bundle.js).

请注意,包含在最新 Ionic 版本中的 AngularJS 版本是在测试期间使用的版本(我假设).因此,手动包含更新版本的 Ionic 可能会中断.

Do note that the AngularJS version that is included in the newest Ionic version is the version that is/was used during testing (I assume). So by manually including a newer version Ionic may break.