This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Joao Araujo (jocafi) on November 2018 | |
* | |
* The class TypeHelper was implemented to overcome some weakness of enum structures in TypeScript. | |
* | |
* <h2>How to use it?</h2> | |
* | |
* 1) Declare all the keys like the example below: | |
* | |
* public static STATUS_ID = "STATUS_ID"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from "@angular/core"; | |
/** | |
* Created by Joao Araujo (jocafi) on November 2018 | |
* | |
* UtilService implements some util methods which can be used along the App development. | |
* | |
*/ | |
@Injectable() | |
export class UtilService { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgbDatepickerConfig, NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap'; | |
import { NgbDateFRParserFormatter } from "./ngb-date-fr-parser-formatter" | |
@Component({ | |
providers: [{provide: NgbDateParserFormatter, useClass: NgbDateFRParserFormatter}] | |
}) | |
export class AppComponent {} |