Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): add config service to manage the application #65

Merged
merged 2 commits into from
Jun 1, 2017

Conversation

mbarbeau
Copy link
Member

@mbarbeau mbarbeau commented Jun 1, 2017

No description provided.

Copy link
Collaborator

@cbourget cbourget left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice addition. A few small changes are needed.

@@ -34,6 +36,10 @@ export function languageLoader(http: Http) {
IgoModule.forRoot()
],
providers: [
provideConfigOptions({
default: environment.igo,
jsonPathFile: './config/config.json'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be "jsonFilePath" or simply "path"

@@ -0,0 +1,4 @@
export interface ConfigOptions {
default?: {[key: string]: any},
jsonPathFile?: string
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment above

import { Http } from '@angular/http';
import { Observable } from 'rxjs/Rx';

import { ObjectUtils } from "../../utils";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single quotes


constructor(private jsonp: Jsonp,
@Inject(SEARCH_SOURCE_OPTIONS)
private options: SearchSourceOptions) {
private options: SearchSourceOptions,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should search options such as "limit" be configurable in the service?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes and several other options in other services.

@mbarbeau mbarbeau merged commit fddefb7 into master Jun 1, 2017
@mbarbeau mbarbeau deleted the configService branch June 1, 2017 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants