how would I loop over this using ngfor so that everything becomes top level, I want to display from 1 counting up to the last string number.
currently when I use a single ngfor it’ll create a element for array number 1 with comma seperated values
I think you’re right, I’ll try to change the labels to angular.
I’ve already found a solution for my use case.
The answer you’ve posted does seem to work for multi dimensional arrays but is a somewhat uglier approach in my opinion than to use a spread operator in ES6.
Thank you for the suggestion, I’ll change it into JSON. Should this be displayed within the code tag as well?
What would the difference be between displaying this as a JSON object or as a Javascript Object though? I don’t really see how that would make a big difference
In fact I actually find this easier to read. (Since it’s what I see in the chrome dev console)
EDIT: I can’t find a category of only Angular inside the ionic forums, perhaps this should be posted on stackoverflow instead. All I could find was Ionic Angular.
I’m really confuse with object you post, cause I don’t get if it’s an associative object or and simple array. My suggestion was only for improve my response. Maybe someone get it better than me
Yes, this is a forum specially for Ionic, people like me that works with angular could help you, but maybe in StackOverflow yo could get faster and better responses.
Could be both, that’s just a matter of using {} vs square brackets.
There aren’t separate concepts for an Associative Array vs Object.
In javascript this wouldn’t make a difference.
It’s a multi dimensional array but could also be a multi dimensional object.