how can I use AngularJS and a serializeJSON cfquery

后端 未结 2 1433
小蘑菇
小蘑菇 2021-01-21 09:08

I am trying to take a look at AngularJS, with a cf backend

I have the following code that pulls a regular cfquery called getIndex which pulls five rows of columns each (

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-21 09:32

    ng-repeat can handle an array or an object. For an object, use the "(key, value)" syntax.

    This won't solve your problem though, unless you reformat your data like so:

    { 'Yasteel':'Si', 'Kyleigh':'No', ... }
    

    Then you can do this:

    {{first}} - {{last}}

提交回复
热议问题