thanks for reply;
I now have
angular.directive "ns:insertnewline", (expression, element) ->
(element) ->
scope = @
element.bind "keyup", (event) ->
if event.keyCode == 13
scope.$tryEval(expression, element)
which works fine; is there anything that you would recommend not doing; or doing from this code snippet;
I not 100% on the whole scope.$root.$eval(); should I not be able to eval just on the scope??? it seems to be that calling updateView would make more sense syntax wise here(if I can how do I from this function?); What is the best procedure for updating a view?
I originally choose widgets as I thought I required my widget to take precedence over the directive ones; to be honest I dont really understand the difference; the docs say precedence and dom manip which I thought my widget did;
also why would creating the widget prevent the angular's input from running exactly??
Also I have tried endless client libraries sproutcore backgone etc etc; Angular is approach is really cool; kind of strange to get ur head round at first as is different from what I have used before; But its "winning"
thanks