Skip to content

Instantly share code, notes, and snippets.

@sitefinitysteve
Last active January 31, 2018 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sitefinitysteve/bd3d09a5c082e1c40c914533b5866d5e to your computer and use it in GitHub Desktop.
Save sitefinitysteve/bd3d09a5c082e1c40c914533b5866d5e to your computer and use it in GitHub Desktop.
$(function () {
//Boostrap each scheduler
$(".my-widget").each(function (index) {
var appName = 'myApp' + index;
var myApp = angular.module(appName, ['ngSanitize', 'kendo.directives']);
myApp.controller("myController", myController);
angular.bootstrap($(this).get(0), [appName]);
});
});
function myController($scope, $element) {
$scope.message = "I work";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment