I have something that should be showing a lot of data that is not showing
any data.
In my HTML I have:
<div ng-controller='OutputController'>
<div ng-repeat='user in data.users'>
<div ng-repeat='monologue in data.monologues[user]'>
<span class='text' ng-bind='monologue.text'></span>
<span class='timestamp' ng-bind='new Date(monologue.
timestamp).toLocaleString()'></span>
</div>
</div>
In my JavaScript I have:
var repeatEr = function(data, status, headers, config)
{
var interval = 1000;
angular.extend($scope, data);
In the data being sent to my page I have:
{"monologues": {"[email protected]": [["False", 0.0],
["False", 0.0], ["False", 0.0], ["False", 0.0], ["False", 0.0],
["False", 0.0], ["False", 0.0], ["False", 0.0], ... }, "users":
["[email protected]"]}
What is happening is that it is displaying empty results.
What I intend for it to do is to pull the Ajax data it is pulling, and
then display the text ("False" here) and timestamps in successive
DIV's.
Given the data as I have it, what should I be doing with the repeaters
so that it is displaying results accordingly?
--Or--
Given the repeaters I have, what should I be populating as data so
that the repeaters will have what they need?
Thanks,
--
[image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/>
Christos Jonathan Seth Hayward, an Orthodox Christian author.
Amazon / Kindle <http://amazon.com/author/cjshayward> * *Author
<http://cjshayward.com/>* * Author Bio <http://jonathanscorner.com/author/>
* *Email <[email protected]>* *
Facebook<http://www.facebook.com/christos.jonathan.hayward>
* Fan Page <http://fan.cjshayward.com/> * Google
Plus<http://jonathanscorner.com/plus>
* LinkedIn <http://www.linkedin.com/in/jonathanhayward> * *Professional
<http://jonathanhayward.com/>* * Twitter<http://twitter.com/JonathansCorner>
* *Web <http://jonathanscorner.com/>* * What's
New?<http://jonathanscorner.com/>
If you read just *one* of my books, you'll want *The Best of Jonathan's
Corner <http://www.amazon.com/dp/1478219912>*.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.