GUACAMOLE-136: Merge new $element functionality for field controllers.
This commit is contained in:
commit
718e4dab00
1 file changed
+4
-1
@@ -249,7 +249,10 @@ angular.module('form').provider('formService', function formServiceProvider() {
|
|||||||
// Populate scope using defined controller
|
// Populate scope using defined controller
|
||||||
if (fieldType.module && fieldType.controller) {
|
if (fieldType.module && fieldType.controller) {
|
||||||
var $controller = angular.injector(['ng', fieldType.module]).get('$controller');
|
var $controller = angular.injector(['ng', fieldType.module]).get('$controller');
|
||||||
$controller(fieldType.controller, {'$scope' : scope});
|
$controller(fieldType.controller, {
|
||||||
|
'$scope' : scope,
|
||||||
|
'$element' : angular.element(fieldContainer.childNodes)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compile DOM with populated scope
|
// Compile DOM with populated scope
|
||||||
|
|||||||
Reference in new issue
Block a user