<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>angularjs on Curtis Timson</title><link>https://hugo.curtiscode.dev/tags/angularjs/</link><description>Recent content in angularjs on Curtis Timson</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><lastBuildDate>Fri, 17 Nov 2017 18:00:00 +0000</lastBuildDate><atom:link href="https://hugo.curtiscode.dev/tags/angularjs/index.xml" rel="self" type="application/rss+xml"/><item><title>AngularJs with Jest Unit Testing</title><link>https://hugo.curtiscode.dev/post/angularjs/angularjs-jest-unit-testing/</link><pubDate>Fri, 17 Nov 2017 18:00:00 +0000</pubDate><guid>https://hugo.curtiscode.dev/post/angularjs/angularjs-jest-unit-testing/</guid><description>Jest, a unit testing framework by Facebook, is commonly associated with the React JS library. However Jest is not specifically for React, and can be used to test any javascript code you wish.
Recently I&amp;rsquo;ve been using Jest with AngularJs 1.6 and have put together the following step-by-step guide on how to get setup.
This guide includes:
Installing Angular Mocks and Jest CLI Creating an AngularJs Service Create Jest unit test file Running Jest tests with failed example Correcting service and running successful Jest tests Checking code coverage of tests TL;DR - Full Working Example on GitHub Install Angular Mocks and Jest CLI To use Jest with AngularJs you will require the Angular Mocks and Jest CLI packages, which can be installed using npm:</description></item><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>