How to pass array to AngularJS app via url using ui.router module
<p>I use Angular 1.5 and ui.router module  and want to pas int array to app throw url. www.example.com/#/filter?[1,2,5] or www.example.com/#/filter/[1,2,5] or something else.</p>

<pre><code>.state('cats', {
             url: '/filter?catsIds', // or /filter/{catsIds}
             templateUrl:'cats.html',
             controller: 'catsCtrl'
         })
</code></pre>

<p>goal:</p>

<pre><code>app.controller('catsCtrl',function($stateParams){
    console.log(Array.isArray($stateParams.catsIds)) // goal true
    ...
</code></pre>