如何在Ionic Framework中更新Angular的版本? [英] How to update the version of Angular in Ionic Framework?
问题描述
我对Angular过滤器有一些问题,每个人都说:是因为你没有使用1.3.8或更高版本的版本,我只是通过 angular.version $ c来实现我的版本$ c>在控制台上:
对象{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
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.
这篇关于如何在Ionic Framework中更新Angular的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!