diff --git a/templates/coffeescript-min/directive.coffee b/templates/coffeescript-min/directive.coffee index 7e8909c23..71ff61c53 100644 --- a/templates/coffeescript-min/directive.coffee +++ b/templates/coffeescript-min/directive.coffee @@ -1,7 +1,7 @@ 'use strict'; angular.module('<%= _.camelize(appname) %>App') - .directive('<%= _.camelize(name) %>', [() -> + .directive '<%= _.camelize(name) %>', [-> template: '
' restrict: 'E' link: (scope, element, attrs) -> diff --git a/templates/coffeescript-min/spec/directive.coffee b/templates/coffeescript-min/spec/directive.coffee index 9d2997eca..62117526c 100644 --- a/templates/coffeescript-min/spec/directive.coffee +++ b/templates/coffeescript-min/spec/directive.coffee @@ -8,4 +8,4 @@ describe 'Directive: <%= _.camelize(name) %>', () -> it 'should make hidden element visible', inject ($rootScope, $compile) -> element = angular.element '<<%= _.dasherize(name) %>><%= _.dasherize(name) %>>' element = $compile(element) $rootScope - expect(element text()).toBe 'this is the <%= _.camelize(name) %> directive' + expect(element.text()).toBe 'this is the <%= _.camelize(name) %> directive'