| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1× 112× 112× 111× 111× 8× 103× 1× | import { avalon,platform } from '../seed/core'
import { impCb } from './important'
avalon.directive('controller', {
priority: 2,
getScope: function (name, scope) {
var v = avalon.vmodels[name]
if (v){
v.$render = this
if(scope && scope !== v){
return platform.fuseFactory(scope, v)
}
return v
}
return scope
},
update: impCb
}) |