kennethlynne/generator-angular-xl

View on GitHub
templates/javascript/framework/errorCtrl.js

Summary

Maintainability
A
50 mins
Test Coverage
'use strict';

angular.module('<%= scriptAppName %>')
  .config(function ($stateProvider, stateFactory) {
    $stateProvider.state('error', stateFactory('Error', {
      url: '/error?code'
    }));
  })
  .controller('ErrorCtrl', function ($scope, $stateParams) {
    $scope.errorCode = $stateParams.code;
  });