I wrote a directive for the Plug-in to integrate it to my source-code. Here is the sample of the directive:
directive('mention', function (DataModel) {
return {
restrict: 'A',
scope: true,
controller: function ($scope, $element, $attrs) {
console.log("Hola i am here")
$scope.onSlide = function (e, ui) {
$scope.model = ui.value;
// or set it on the model
// DataModel.model = ui.value;
// add to angular digest cycle
$scope.$digest();
};
},
link: function (scope, el, attrs) {
I cannot get the user data for @mentions. Can you advise so as to what the issue might have been. I feel that AngularJS is getting the data first. Please advise.
I wrote a directive for the Plug-in to integrate it to my source-code. Here is the sample of the directive:
directive('mention', function (DataModel) { return { restrict: 'A', scope: true, controller: function ($scope, $element, $attrs) { console.log("Hola i am here") $scope.onSlide = function (e, ui) { $scope.model = ui.value; // or set it on the model // DataModel.model = ui.value; // add to angular digest cycle $scope.$digest(); }; }, link: function (scope, el, attrs) {
});
I cannot get the user data for @mentions. Can you advise so as to what the issue might have been. I feel that AngularJS is getting the data first. Please advise.