Skip to content

Instantly share code, notes, and snippets.

@ronapelbaum
Created July 13, 2016 08:51
Show Gist options
  • Save ronapelbaum/355c7d03c3ea87d4f038b8b29375f09e to your computer and use it in GitHub Desktop.
Save ronapelbaum/355c7d03c3ea87d4f038b8b29375f09e to your computer and use it in GitHub Desktop.
test a directive
beforeEach(inject(function($compile, $rootScope) {
element = angular.element("<div upper-case-attr text='Hello World'></div>");
$compile(element)($rootScope);
$rootScope.$apply();
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment