angularjs - Umbraco 7.3.4 - Custom Data Type Value Doesn't Change -
i have created custom data type deal character limits on text areas.
i have been following demo $scope.info = "hello world" before user started typing in text area.
i have since deleted should have removed text umbraco content interface.
but still showing "hello world" on right side of text box.
customer editor angular controller:
angular.module("umbraco").controller("my.customeditorcontroller", function ($scope, notificationsservice) { $scope.info = ""; $scope.limitchars = function () { var limit = parseint($scope.model.config.limit); if ($scope.model.value.length > limit) { $scope.info = "you cannot write more " + limit + " characters!"; $scope.model.value = $scope.model.value.substr(0, limit); notificationsservice.remove(0); notificationsservice.warning($scope.info); } else { $scope.info = "you have " + (limit - $scope.model.value.length) + " characters left."; } } });
have tried increment version in config/clientdependency.config? seems caching issue on level – eyescream
did , worked.
Comments
Post a Comment