ionic-angular3.6.0要求开发者更新到的最新版本Ionic CLI和@ionic/app-scripts

3.6.0

Upgrade Instructions

ionic-angular3.6.0 requires developer's to update to the latest version of theIonic CLIand@ionic/app-scripts.

To upgrade, please run

npm install -g ionic@latest

npm install @ionic/app-scripts@latest --save-dev

npm install ionic-angular@latest --save

Notes

The URL when using deep linking is shortened and improved in this release. Due to a limitation in our nav system, if you're usingion-tabsand have a tab name that matches a segment, meaning you have a tab name ofscheduleand a segment ofschedule, there could potentially be issues. To mitigate these issues, make sure you set thetabUrlPathproperty on theion-taband give it a unique name. This limitation will require an API change to fix so it will be resolved inionic-angular4.x.

The upgrades include necessary changes to generators that add back lazy loading functionality, as well as an improved way of generating component/directives/and pipes.

New Generators

The release adds back the functionality to generate lazy loaded pages. To generate a lazy loaded page, run:

ionic g page

This will include a.module.tsfile in the page directory created. If you do not want to generate a lazy loaded page, you can run:

ionic g page--no-module

This will also generate lazy loaded tabs as well, accepting the--no-moduleflag as well to disable it.

For pipes/components/components, we now generate a shared common module for each of these.

So running:

ionic g component music-card

Will create acomponents/components.module.tsfile that declares and exports themusic-cardcomponent. We think that this will allow developers to get up and running with custom components much faster and will less overhead.

Bug Fixes

list:remove margin of MD buttons in ion-item-options (#12263) (97f9522)

nav:make call to setPages return the promise so if it rejects it doesn't get lost (de0f9d5)

navigation:account for race conditions in developer's code (4596dbe)

navigation:fix bug where that occurred when tab identifier and segment had the exact same string (add0c4e)

navigation:fix null pointer exceptions that would occur when destroying a nav controller while its transitioning (584afd0)

navigation:reduce urls to minimum set of fields (a8ceee4)

Features

generators:refactor generators (400aa54)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容