Guest User

Untitled

a guest
Feb 14th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. $(function () {
  2. //Boostrap each scheduler
  3. $(".my-widget").each(function (index) {
  4. var appName = 'myApp' + index;
  5. var myApp = angular.module(appName, ['ngSanitize', 'kendo.directives']);
  6. myApp.controller("myController", myController);
  7.  
  8. angular.bootstrap($(this).get(0), [appName]);
  9. });
  10. });
  11.  
  12. function myController($scope, $element) {
  13. $scope.message = "I work";
  14. }
Add Comment
Please, Sign In to add comment