I’ve used this on both beta.7 and beta.8 and it seems to be working, post your code up here so we can see. Are you importing the ViewController and setting up a reference to it for this.view?
And are you calling cancel() correctly from your template? Also, you can surround your code with three backticks ` at the top and bottom to format your code.
zone.js:260 Uncaught EXCEPTION: Error in build/pages/modal-contas/modal-contas.html:3:14
ORIGINAL EXCEPTION: TypeError: Cannot read property 'dismiss' of undefined
ORIGINAL STACKTRACE:
TypeError: Cannot read property 'dismiss' of undefined
at ModalContasPage.cancel (http://localhost:8100/build/js/app.bundle.js:216:16)
at DebugAppView._View_ModalContasPage0._handle_click_5_0 (ModalContasPage.template.js:397:28)
at http://localhost:8100/build/js/app.bundle.js:26051:24
at http://localhost:8100/build/js/app.bundle.js:34998:36
at http://localhost:8100/build/js/app.bundle.js:35068:93
at ZoneDelegate.invoke (http://localhost:8100/build/js/zone.js:323:29)
at Object.onInvoke (http://localhost:8100/build/js/app.bundle.js:30629:41)
at ZoneDelegate.invoke (http://localhost:8100/build/js/zone.js:322:35)
at Zone.runGuarded (http://localhost:8100/build/js/zone.js:230:48)
at NgZoneImpl.runInnerGuarded (http://localhost:8100/build/js/app.bundle.js:30662:78)
ERROR CONTEXT:
[object Object]