src/services/view-manager.js
function(callback) {
    // Activate current
    var current = $state.current();

    if(current) {

      // Reset
      _resetActive().then(function() {

        // Render
        var viewsPromised = {};
        var templates = current.templates || {};
        var controllers = current.controllers || {};
        angular.forEach(templates, function(template, id) {
          if(_viewHash[id]) {
            var view = _viewHash[id];
            var controller = controllers[id];
            viewsPromised[id] = _renderView(id, view, template, controller);
            _activeSet[id] = view;
          }
        });

        $q.all(viewsPromised).then(function() {
          callback();
        }, callback);

      }, callback);

    // None
    } else {
      callback();
    }
  }
function(callback) {
    // Activate current
    var current = $state.current();

    if(current) {

      // Reset
      _resetActive().then(function() {

        // Render
        var viewsPromised = {};
        var templates = current.templates || {};
        var controllers = current.controllers || {};
        angular.forEach(templates, function(template, id) {
          if(_viewHash[id]) {
            var view = _viewHash[id];
            var controller = controllers[id];
            viewsPromised[id] = _renderView(id, view, template, controller);
            _activeSet[id] = view;
          }
        });

        $q.all(viewsPromised).then(function() {
          callback();
        }, callback);

      }, callback);

    // None
    } else {
      callback();
    }
  }
function ( callback ) { // Activate current var current = $state . current ( ) ; if ( current ) { // Reset _resetActive ( ) . then ( function ( ) { // Render var viewsPromised = { } ; var templates = current . templates || { } ; var controllers = current . controllers || { } ; angular . forEach ( templates , function ( template , id ) { if ( _viewHash [ id ] ) { var view = _viewHash [ id ] ; var controller = controllers [ id ] ; viewsPromised [ id ] = _renderView ( id , view , template , controller ) ; _activeSet [ id ] = view ; } } ) ; $q . all ( viewsPromised ) . then ( function ( ) { callback ( ) ; } , callback ) ; } , callback ) ; // None } else { callback ( ) ; } }
Update rendered views

@param {Function} callback A completion callback, function(err)
Update rendered views