Skip to content

Instantly share code, notes, and snippets.

@jakebern
jakebern / controller.js
Created June 25, 2014 00:07
Jasmine Testing - Injecting and testing for state change
.controller('A', function($scope, $state){
$scope.functionA = function(ID){
$state.go('next-state', {number: ID});
};
})