Search code examples
angularjsjsfiddle

JSfiddle not evaluating AngularJs $scope variables


I am trying to make a fiddle to ask for help with a problem which I am having.

I based on an existing Angular empty fiddle and have created this fiddle

However, when I try to evaluate $scope variables in my HTML, by surrounding them by double braces, the value is not show, the brace-wrapped expression is.

For instance, to evaluate $scope.myValue, I have {{myValue}} in my HTML, but it actually gets displayed as {{myValue}}, not the value of myValue.

Please take a look at my fiddle & tell me what I am doing wrongly.


Solution

  • First off, you are trying to load angular over HTTP but the fiddle is loaded on HTTPS. So it will block the requests for angular as you can see from the console errors.

    Second you have forgotten your braces for function call.

    <td>{{ShowManagerStuff(managers.details, manager)}}</td>
    

    Working Fiddle: https://jsfiddle.net/Lqpycjzt/9/