Skip to content

jonashartmann/stage-directive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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());
	// ...
});

About

KineticJS integration with AngularJS as a directive

Resources

License

Stars

Watchers

Forks

Packages

No packages published