how to pass data into controller opened via $state.go(controller.state)?
<p>I have array of objects.When I click on name it should open md-content page with configuration of the folder. Situation is next:  when I click on name -it opens conf. page with FolderConfigController, but I want to send folder object into the FolderConfigController to work with it.</p>

<pre><code>folders = [{name: name1, id:id1},{name: name2, id:id2},{name: name2, id:id2}]
</code></pre>

<p>listed in lefsidenav:</p>

<pre><code>&lt;div ng-repeat="folder in folders" ng-click="vm.openConfigPage()"&gt;{{folder.name}}
</code></pre>

<p>in folderController:</p>

<pre><code>vm.openConfigPage = openConfigPage;
function openConfigPage() {
    $state.go('triangular.config');
}
</code></pre>

<p>FolderConfigController.config:</p>

<pre><code>(function() {
'use strict';

angular
    .module('app.components.work')
    .config(moduleConfig);

/* @ngInject */
function moduleConfig($stateProvider) {

    $stateProvider
    .state('triangular.config', {
        url: '/work/folder/config',
        templateUrl: 'app/components/work/folder-config/folder-config.tmpl.html',

        controller: 'FolderConfigController',
        controllerAs: 'vm',
    });

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

<p>is it possible to make something like:</p>

<pre><code>function openConfigPage(folder) {
    $state.go('triangular.config');
    FolderConfigController.folderObject = folder;
}
</code></pre>

<p>how it works in correct way?</p>