Monaca Onsen UI Discord Chat Github Repo

Is Onsen v 2.10.8 backwards compatible with onsen v 2.7.0?



  • I want to make sure there won’t be any css conflicts between the two.
    So far it seems that v 2.7 had ons-split-view component where the newer version does not have such a component.

    Is there anything else that I should be concerned with if I were to migrate from 2.7 to 2.10.8?

    Thank you!


  • administrators

    ons-split-view was a component in Onsen UI v1. v1 was coupled with AngularJS, but with the release of Onsen UI v2, you could use just plain JS or another framework without needing to use AngularJS. So as of Onsen UI v2, ons-split-view was deprecated in the AngularJS version and not available in any other version. This also means v2.7 did not include ons-split-view. Now you should use ons-splitter instead of ons-split-view.

    There are some other breaking changes between minor versions. For a full list of changes, please see the CHANGELOG:
    https://github.com/OnsenUI/OnsenUI/blob/2.10.10/CHANGELOG.md

    Realistically there shouldn’t be too many difficulties in moving from v2.7 to the latest version, but there may be a couple of minor things that don’t work as expected.

    One problem that other people have run into is that the syntax for ionicons changed in v2.10.9. If your icons are suddenly not showing, check here for the correct syntax:
    https://ionicons.com/v4/

    Also, the latest version is 2.10.10, not 2.10.8, so you may as well upgrade to that.

    If you need any help upgrading, please let me know.