Skip to Content
1
Apr 04, 2018 at 09:23 AM

how to write custom ng-controller in smartedit. I am trying to write our custom controller in cmssmarteditContainer.ts fiel. but it is nothing happing.

104 Views

Can you anyone help me and give some idea to write any simple controller and service in custom smartedit extion?

below i am pasting code which i written. import * as angular from 'angular';

const mwcmssmarteditModule = angular.module('mwcmssmarteditModule', ['editorFieldMappingServiceModule', 'mwcmssmartedit/cmssmarteditContainerTemplates']) .controller('mwcursorPositionCtrl', function($scope) { $scope.message = 'welcome'; }) }); and there is one html template below cumtomTemplate.html file and inside printing only this {{message}} and it is printing as it is only but nothig is happing . i am not sure it is angular.js library is calling or not .