AngularAOP v0.1.0

1 · Minko Gechev · Dec. 4, 2013, midnight
In this blog post I’ll introduce you the new way of annotating services included in AngularAOP v0.1.0. First, why we need a new way for annotation? In v0.0.1 the annotations were made in services’ bodies. It was something like this: myApp.factory('AwesomeService', function (execute, d1, d2,...,dn) { var api = /* definition of our service api */ return execute(Logger).onThrowOf(execute(Authorization).before(api, { methodPattern: /Special|getArticleById/, argsPatterns: [/^user$/, /^[Ii]d(_num)?$/]...