Created
July 7, 2014 09:12
-
-
Save littlehaker/49e30f820256287f4b6b to your computer and use it in GitHub Desktop.
Extend angular controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.controller('CtrlImplAdvanced', ['$scope', '$controller', function ($scope, $controller) { | |
| // Initialize the super class and extend it. | |
| $.extend(this, $controller('CtrlImpl', {$scope: $scope})); | |
| // … Additional extensions to create a mixin. | |
| }]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment