Generator for angularjs