Skip to content

v0.1.10

Compare
Choose a tag to compare
@PillowPillow PillowPillow released this 20 Aug 18:18
· 55 commits to master since this release

0.1.10 (2015-08-14)

@conceal: [new feature]

the conceal decorator is now available.
it provides a way to declare the class members as private.

import {factory, inject, conceal} from 'node_modules/ng-annotations';

@factory()
@inject('$http')
class MyFactory {
    @conceal
    @attach('$http')
    $http

    @conceal
    datas = [];

    getDatas() {
        return this.datas;
    }
}


import {service, inject} from 'node_modules/ng-annotations';

@service()
@inject(MyFactory)
class MyService {

    constructor(myFactory) {
        myFactory.$http; // not defined
        myFactory.datas; // not defined
        myFactory.getDatas; // defined
    }

}