AngularJS - Basic ng-repeat with ng-switch -


I have simple ng-repeat, which displays a list of conditions I

current ng - Doubling:

  & lt; Td ng-repeat = "mystatus status in history. Salis (0, 12)" & gt; {{MyStatus}} & lt; / Td> With NG-switch:     Error & lt; / Span & gt; & Lt; / TD & gt;   

However, nothing above is displayed on the NG-switch.

Works at my end, it

But as a suggestion I prefer to use the function expression instead of the NG-switch.

  & lt; Td ng-repeat = "myStatus in history.Status.slice (0, 12)" & gt; & Lt; Period & gt; {{GetStatus (myStatus)}} & lt; / Span & gt; & Lt; / TD & gt;   

getStatus is a function that will return the required information.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -