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 (
@Mark Thanks for the help. My question was specifically about converting a CFQUERY to something ANGULAR could deal with. With a little help from Ben Nadel's article about Angular and an article about converting a query to an array of structs. I got it completed.
For those CFers that will find this go get Ben's queryToArray. Here is an example with a query that contains the columns firstName, lastName, age.
a = createObject('component','angular');
getQuery = a.getQuery();
QueryArray = a.queryToArray(getQuery);
{{person.FIRSTNAME}} - {{person.LASTNAME}} - {{person.AGE}}
I hope this helps someone else who is trying to learn Angular!