Hi,
If you use master, this won't work.
The scope storage was changed, and it is now kept in the paragraph
controller only. (Scope can be applied to notebook or specific paragraphs
from backend)

One way to deal with this would be to have a div with an id in your
paragraph 2, then access that dom element parent scope (which would be the
paragraph scope)
On Mar 21, 2016 5:58 PM, "Balachandar R.A." <balachandar...@gmail.com>
wrote:

> Hello
>
> This is my para 1
>
>
> var name = "bala"
> z.angularBind("name",name)
>
> This is my para2
>
> %angular
> <script type="text/javascript">
>     var controllerElement = document.querySelector('[ng-app]');
>     var scope = angular.element(controllerElement).scope().compiledScope;
>     console.log(scope.name);
> </script>
>
>
> I ran para 1 and then para 2. Expected to see "bala" as output but this
> did not print anything. what could be the issue here? I do not see any
> error log as well in my browser console.
>
> regards
> Bala
>

Reply via email to