Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 518 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 518 Bytes

KineticJS integration with AngularJS

Add the module kinetic as a dependency to your app

var myApp = angular.module('myApp', ['kinetic']);

then use the stage directive as an element

<stage></stage>

or an attribute

<div stage=""></div>

then catch the event 'KINETIC:READY' on any controller

$scope.$on('KINETIC:READY', function kineticReady (event, stage) {
	// do something with the stage
	// like stage.add(new Kinetic.Layer());
	// ...
});