mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
BREAKING CHANGE: All directives are now prefixed with `ion-`.
For any directive you use, add the ionic prefix.
For example, change this HTML:
```html
<tabs>
<tab title="home" href="/tab/home">
<content>Hello!</content>
</tab>
</tabs>
```
To this HTML:
```
<ion-tabs>
<ion-tab title="home" href="/tab/home">
<ion-content>Hello!</ion-content>
</ion-tab>
</ion-tabs>
```
22 lines
502 B
JavaScript
22 lines
502 B
JavaScript
describe('Ionic nav-view', function() {
|
|
beforeEach(module('ionic.ui.viewState'));
|
|
|
|
var compile, scope;
|
|
beforeEach(inject(function($compile, $rootScope) {
|
|
compile = $compile;
|
|
scope = $rootScope.$new();
|
|
}));
|
|
|
|
it('should publish a controller', function() {
|
|
var view = angular.element('<ion-nav-view></ion-nav-view>');
|
|
compile(view)(scope);
|
|
scope.$apply();
|
|
|
|
expect(view.controller('ionNavView')).toBeTruthy();
|
|
});
|
|
|
|
/*
|
|
* TODO adapt the tests from uiRouter
|
|
*/
|
|
});
|