V School | Better Humans, Better Outcomes

Pokemon Pals

Exercise requirements You will have two routes 1. /pokemon 2. /pokemon/details The first route will make an http request to get a pokedex (http://pokeapi.co/api/v1/pokedex/{some-id}/). You will list each pokemon by name. Next to each pokemon will be a "details" button. When this button

Testing AngularJS Part 3 - Controllers with Dependencies

This post builds off of the previous post which covers setting up your Angular project with Karma, Jasmine, and ngMock, as well as testing a basic controller with no external dependencies. If you haven't gone through that one yet, you'll probably want to start there first. For repetition's sake, and

Testing AngularJS Part 2 - Efficient Unit Testing

This post takes a step down from covering syntax and processes for testing in AngularJS, and instead will wax a little philosophical. A clear understanding of the material presented in this post will lead you to avoid testing things that don't need to be tested and will save you time

'High' on 'Potenuse' & Services

Below we have an example controller that has several methods for geometric calculations on a right triangle. app.controller('TriangleController', ['$scope', function ($scope) { // here we have a triangle object $scope.triangle = { base: undefined, height: undefined }; $scope.findArea = function () { $scope.area = 0.5 * $scope.triangle.base * $scope.triangle.height }; $scope.

Testing AngularJS Part 1 - Karma, Jasmine, and ngMock

This is part of a series of posts on testing. If you haven't yet and you're new to testing in JavaScript, please read and follow along with the previous posts before moving on: 1. Testing Basics 2. Testing JavaScript with Jasmine 3. Karma It also assumes you're a relatively experienced

V School | Better Humans, Better Outcomes © 2026