angular.module('ClippyDemo', ['ngRoute', 'ngClippy'])
.config(function ($routeProvider, clippyProvider) {
$routeProvider.when('/', {
controller: 'DemoCtrl',
template: '<div></div>',
resolve: {
agent: clippyProvider.resolve('Merlin')
}
});
})
.controller('DemoCtrl', function ($scope, agent) {
agent.show();
agent.speak('Hello World!');
});
bower install ngClippy
Note: ngClippy requires ClippyJS which requires jQuery for now...