Last active
December 15, 2015 00:49
-
-
Save ashrafuzzaman/5175386 to your computer and use it in GitHub Desktop.
Compile angularJs
This file contains 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
var $injector = angular.injector(['ng', 'custom_directives']); | |
var controllerDiv = $j(wrapper.find('div[ng-controller]')[0]); | |
$injector.invoke(function($rootScope, $compile, $document){ | |
$compile(controllerDiv)($rootScope); | |
$rootScope.$digest(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiling angularJs