http://code.angularjs.org/0.10.5/docs-0.10.5/guide/dev_guide.compiler.widgets.creating_widgets
but it seems volatile, as this comment is attached explicitly to 10.5
release, so maybe no one would read it before new release shows up, so
I am reposting it here:
Compare these two:
angular.widget('my:watch', function(compileElement) {...});
angular.widget('@ my:watch', function(expression, compileElement) {...});
I think, the 'expression' parameter for attribute widget should go
after compileElement, so these two callback functions would look
exactly the same when expression is not declared.
I am writing this, because it forced me several times already to debug
and fix the problem, because I was either switching from element- to
attribute-widget or I was creating new one based on previous and
always the same: compileElement equals empty string - because it
becomes an expression.
Regards,
Witold Szczerba
--To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/q-DLCPnUiaMJ.
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.