Skip to content

Commit

Permalink
fix(utils): Failed to load template ngParty#209
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomaszi committed Sep 25, 2017
1 parent 650c029 commit 9c5a604
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/testing/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export function renderFactory( $compile: ng.ICompileService, $scope: any ) {

// angular api
const compiledElement = $compile(jqHost)($scope);
$scope.$digest();
const ctrl = compiledElement.controller(ctrlName) as T;
$scope.$apply();

Expand Down

0 comments on commit 9c5a604

Please sign in to comment.