Asymmetrik/mean2-starter

View on GitHub
src/client/app/help/help.service.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Injectable } from '@angular/core';
import { HelpTopic } from './help.class';

@Injectable()
export class HelpService {
    public helpRegistry: HelpTopic[] = [];

    public registerHelpComponent(helpTopic: HelpTopic) {
        this.helpRegistry.push(helpTopic);
    }

    public getTopics(): HelpTopic[] {
        return this.helpRegistry;
    }
}