mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(controllers): only assign to parent scope when needed
This commit is contained in:
@@ -18,11 +18,8 @@ describe('Ionic Angular Side Menu', function() {
|
||||
var el = $compile('<ion-side-menus controller-bind="supermodel"></ion-side-menus>')($rootScope.$new());
|
||||
var scope = el.scope();
|
||||
expect(el.controller('ionSideMenus')).toBeDefined();
|
||||
expect(scope.$parent.supermodel).toBe(el.controller('ionSideMenus'));
|
||||
expect(scope.supermodel).toBe(el.controller('ionSideMenus'));
|
||||
}));
|
||||
|
||||
it('should init with custom model attr', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Ionic Side Menu Content Directive', function () {
|
||||
|
||||
Reference in New Issue
Block a user