<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>array on Curtis Timson</title><link>https://hugo.curtiscode.dev/tags/array/</link><description>Recent content in array on Curtis Timson</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><lastBuildDate>Wed, 24 Jun 2015 00:00:00 +0000</lastBuildDate><atom:link href="https://hugo.curtiscode.dev/tags/array/index.xml" rel="self" type="application/rss+xml"/><item><title>Filtering arrays in AngularJS</title><link>https://hugo.curtiscode.dev/post/angularjs/filtering-arrays-in-angularjs/</link><pubDate>Wed, 24 Jun 2015 00:00:00 +0000</pubDate><guid>https://hugo.curtiscode.dev/post/angularjs/filtering-arrays-in-angularjs/</guid><description>Previously I wrote an articleon how to display data from a simple javascript array using AngularJS.
Following on from that this next article will show you how to filter that same array by particular properties.
In the previous article I used the following HTML markup with AngularJS to loop through an array of users to display their Name and Location:
&amp;lt;div ng-app=&amp;#34;myApp&amp;#34; ng-controller=&amp;#34;myController&amp;#34;&amp;gt; &amp;lt;ul&amp;gt; &amp;lt;li ng-repeat=&amp;#34;user in users&amp;#34;&amp;gt;{{user.Name}} | {{user.</description></item><item><title>Setting up a simple AngularJS app to display an array</title><link>https://hugo.curtiscode.dev/post/angularjs/setting-up-a-simple-angularjs-app-to-display-an-array/</link><pubDate>Tue, 02 Jun 2015 00:00:00 +0000</pubDate><guid>https://hugo.curtiscode.dev/post/angularjs/setting-up-a-simple-angularjs-app-to-display-an-array/</guid><description>AngularJS is a powerful Single-Page-Application javascript framework created by Google.
The following is a simple tutorial on how to set up an AngularJS application to display a javascript array of user information.
First of all we&amp;rsquo;ll start by creating our javascript array. The following is an array of user information containing details of Name, Gender and Location.
var userData = [ { Name: &amp;#34;John Smith&amp;#34;, Gender: &amp;#34;M&amp;#34;, Location: &amp;#34;Wales&amp;#34; }, { Name: &amp;#34;Sally Smith&amp;#34;, Gender: &amp;#34;F&amp;#34;, Location: &amp;#34;USA&amp;#34; }, { Name: &amp;#34;Curtis Timson&amp;#34;, Gender: &amp;#34;M&amp;#34;, Location: &amp;#34;England&amp;#34; }, { Name: &amp;#34;Sam Wallace&amp;#34;, Gender: &amp;#34;M&amp;#34;, Location: &amp;#34;England&amp;#34; }, { Name: &amp;#34;Caroline James&amp;#34;, Gender: &amp;#34;F&amp;#34;, Location: &amp;#34;Scotland&amp;#34; } ]; Next we&amp;rsquo;ll set up the HTML application container required:</description></item></channel></rss>