angularjs state parameters not working
<p>I'm having an issue trying to pass a parameter object to a state using stage.go().</p>

<p>Here is my state definition:</p>

<pre><code>.state('drillhole.ddhinttype', {
        url: '/ddhinttype',
        templateUrl: VIRTUAL_DIR_PATH + '/App/Views/drillholemanager/drillhole/tabddhinttype.html?v=' + fileVer,
        controller: 'DrillHoleDdhIntTypeController',
        params: { name: null, description: null }
    })
</code></pre>

<p>And here is my controller:</p>

<pre><code>try {
    angular.module('centric.drillhole.manager');
} catch (e) {
    angular.module('centric.drillhole.manager', ['app.config', 'ui.router', 'kendo.directives', 'ui.bootstrap', 'ngCookies', 'centric.common', 'centric.notification', 'pascalprecht.translate', 'centric.security', 'centric.app.settings']);
}

angular.module('centric.drillhole.manager').controller('DrillHoleDdhIntTypeController', ['$scope', 'CentricUIHelper', 'NumberHelper', 'DrillHoleManagerService', 'app.config', '$stateParams',
function ($scope, uihelper, numberHelper, service, appconfig, $stateParams) {

    $scope.loading = false;

    $scope.isbusy = function () {
        return $scope.loading || $scope.$parent.loading;
    }

    var load = function () {
        var hello = $stateParams.name;
        var hello2 = $stateParams.description;

    };

    load();

}]);
</code></pre>

<p>And I'm calling the state like so:</p>

<pre><code>$state.go('drillhole.ddhinttype', { name: tab.params.name, description: tab.params.description });
</code></pre>

<p>In my controller the name and description properties are always null.</p>

<p>Not sure what I'm missing here. Any ideas?</p>