Wrapping console.log
(et al.) in your own function to modify logging behavior.
You may want a simple way to:
import { Directive, HostListener, Input, OnChanges, Optional } from '@angular/core'; | |
import { NgModel } from '@angular/forms'; | |
/** | |
* @description | |
* | |
* This is a custom directive to remove matching regex pattern from ngModel inputs | |
* | |
* eg: | |
* (will remove character matching the default regular expression present in the directive) |
var isoCountries = { | |
'AF' : 'Afghanistan', | |
'AX' : 'Aland Islands', | |
'AL' : 'Albania', | |
'DZ' : 'Algeria', | |
'AS' : 'American Samoa', | |
'AD' : 'Andorra', | |
'AO' : 'Angola', | |
'AI' : 'Anguilla', | |
'AQ' : 'Antarctica', |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).