daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Feb 14th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top