tasks/pagesJson_uirouter.js
function stateRefSearch(pages, stateName) {
            for (var i = 0; i < pages.length; i++) {
                if (pages[i].name === stateName) {
                    return pages[i];
                }
            }

            return null;
        }
function stateRefSearch(pages, stateName) {
            for (var i = 0; i < pages.length; i++) {
                if (pages[i].name === stateName) {
                    return pages[i];
                }
            }

            return null;
        }
function stateRefSearch ( pages , stateName ) { for ( var i = 0 ; i < pages . length ; i ++ ) { if ( pages [ i ] . name === stateName ) { return pages [ i ] ; } } return null ; }
Chercher une state
@param {Object[]} pages
@param {String} stateName
@returns {null|Object}
Chercher une state