I am trying to set variable in the directive's scope:
HTML:
<div personalize-product>
Owned: {{ isOwned }}
</div>
Coffee:
angular.module('yoApp').directive 'personalizeProduct', ->
restrict: 'A'
link: (scope, el, attrs) ->
scope.isOwned = 'maybe'
however it does not work. I'm clearly missing something, but I cannot find an answer in angular docs.
EDIT: I should have mentioned - I don't want to pass isOwned to directive, I want the directive to be responsible for setting it.