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

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -