I am trying to use the data in my code below:
$ Scope.master.data = {"list": {"ppp 0001188": ["01", "02", "03"], "ppp 000118 9": ["01", "02", "03"]}}
I want to show it as:
PPP0001188: 01 02 03
The html I am using is as follows:
& lt; Div ng-repeat = "(key, val) in masterData.list." & Gt; & Lt; Div & gt; & Lt; Period & gt; {{}} Key & lt; / Span & gt; & Lt; Ul class = "storeIdList" & gt; & Lt; Store in li ng-repeat = "{{val}}"; & Lt; Button class = "btn btn-default site btn" & gt; {{Store}} & lt; / Button & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Div & gt;
The internal ng-repeating loop has failed, although I populate {{val}}, it gives me an array, can anyone suggest the correct syntax ?? ?
simply
& lt; Store in li ng-repeat = "{{val}}";
& lt; Li ng- Repeatable = "store in val" & gt;
Comments
Post a Comment