0.0.9 • Published 10 years ago

aspect.js-angular v0.0.9

Weekly downloads
12
License
MIT
Repository
github
Last release
10 years ago

Angular bindings for aspect.js

This library provides bindings to the Angular ElementInjector when used together with aspect.js.

Demo

import {Router, Injectable} from '@angular/router';
import {beforeMethod, Metadata} from 'aspect.js';
import {Wove} from 'aspect.js-angular';

class SampleAspect {
  @beforeMethod({
    classNamePattern: /^Bar$/,
    methodNamePattern: /baz$/
  })
  logger(meta: Metadata) {
    meta.woveMetadata.injector.get(Router).navigate(['Home']);
  }
}

@Wove()
@Injectable()
class class Bar {
  baz() {
    // method content
  }
}

License

MIT

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago