angular2-config
v1.1.1
Published
[](https://coveralls.io/github/Valetudox/angular2-config?branch=master) [;Usage in template
import { ConfigPipe } from 'angular2-config';
@Component({
selector: '<sub-app>',
pipes: [ConfigPipe],
template: `
<h1>{{ 'nested.key' | config }}</h1>
<body>
<dropdown *ngIf="'visibleDropdowns' | config"></dropdown>
This is a text
</body>
`
})
export class App {}
Usage in Controller
import { ConfigService } from 'angular2-config';
@Component({
selector: '<sub-app>',
template: `Some content`
})
export class App {
constructor(configService: ConfigService) {
console.log(configService.get('nested.key'));
}