Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
fix(coffee): syntax for minsafe directives
Browse files Browse the repository at this point in the history
close #219
close #218

Thanks @ecogels for reporting!
  • Loading branch information
passy committed May 25, 2013
1 parent 18f0664 commit 62677ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/coffeescript-min/directive.coffee
@@ -1,7 +1,7 @@
'use strict';

angular.module('<%= _.camelize(appname) %>App')
.directive('<%= _.camelize(name) %>', [() ->
.directive '<%= _.camelize(name) %>', [->
template: '<div></div>'
restrict: 'E'
link: (scope, element, attrs) ->
Expand Down
2 changes: 1 addition & 1 deletion templates/coffeescript-min/spec/directive.coffee
Expand Up @@ -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'

0 comments on commit 62677ec

Please sign in to comment.