have my angular controller check to see what ui-view it's located in with ui-router
<p>I'm using ui-router with angularjs. I want to write a template for a view that will show a image depending on what the view is. here's my example state. </p>

<pre><code>$stateProvider
    .state('index', {
        url: "",
        views: {

             "topStormtrooper": { 
                templateUrl: '/components/stormtroopers/stormtroopers.html',
                controller: "stormtroopersCtrl"
            },

             "bottomStormtrooper": { 
                templateUrl: '/components/stormtroopers/stormtroopers.html',
                controller: "stormtroopersCtrl"
            }
        }
    })
</code></pre>

<p>my controller looks like this </p>

<pre><code>.controller('stormtroopersCtrl', ['$scope', '$http', '$stateParams', function ($scope, $http, $stateParams) {
//   
$scope.stormtrooper = $stateView; //it should be something like this hopefully


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

<p>The template is all the same just the image will be different depending which view it is loaded into. Currently I just added a new controller for each view and load the image based on that. But I feel like I should be able to do this with just one controller and the controller should be able to detect what the view is. I know you can detect the state but I want go deeper and get the view.</p>

<p>Any Ideas? </p>