docs: function pack(parent, elements, done) {
    console.warn('[x-router-angular] pack is deprecated, use inject(scope, injector, elements) instead');
    done = done || function(err) { if( err ) console.error(err) };
    if( !elements ) return done(new TypeError('missing elements'));
    if( isNode(elements) ) elements = [elements];
    if( !isArrayLike(elements) ) return done(new TypeError('unknwon type of elements: ' +  elements));
    
    if( typeof parent === 'string' ) el = document.querySelector(parent);
    if( !parent ) return done(new Error('not found parent scope element'));
    if( !isElement(parent) ) return done(new Error('parent must be an element'));
    
    parent = angular.element(parent);
    var parentscope = parent.scope();
    var injector = parent.injector();
    
    if( !parentscope ) return done(new Error('not found parent scope'));
    if( !injector ) return done(new Error('not found parent scope injector'));
    
    [].forEach.call(elements, function(el) {
      if( el.__packed__ ) return;
      el.__packed__ = true;
      
      injector.invoke(['$compile', '$rootScope', function(compile, root) {
        console.log('compile', parentscope, parentscope.$root, root);
        compile(el)(parentscope);
        root.$digest();
      }]);
    });
    
    done(null, elements);
  }