when dynamicModelAttribute is set, it adds $watch for evaluated $scope.$eval(attributes.dragularModel) and in apply function there's second evaluation: drake.sanitizeContainersModel( $scope.$eval( newVal ) ). Obviously when I have expression dragular-model="data.model", it's evaluated to array in $watch, and then it tries to evaluate the array again.
the result of the evaluation is set to drake.containersModel, but this property of drake isn't used in dragularService, private variable o - shortland for options is used instead
There're several bugs:
$scope.$eval(attributes.dragularModel)
and in apply function there's second evaluation:drake.sanitizeContainersModel( $scope.$eval( newVal ) )
. Obviously when I have expressiondragular-model="data.model"
, it's evaluated to array in $watch, and then it tries to evaluate the array again.drake.containersModel
, but this property ofdrake
isn't used indragularService
, private variableo
- shortland foroptions
is used instead