- Open notepad as an administrator
- Edit the host file at c:\windows\system32\drivers\etc\hosts
- Add the current ip address
This file contains hidden or 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
## Employee key is avaliable on child components when parent component is just a path | |
// :employeeKey will be avaliable on: | |
// this.route.snapshot.params['employeeKey'] && this.route.params.subscribe(values => console.log(values)) | |
// on the **EmployeeDetails** and **Dependants** component | |
{ | |
path: 'employee/:employeeKey', | |
canActivate: [AuthGuard], | |
children: [ |
This file contains hidden or 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
export function infoChart() { | |
return { | |
restrict: 'A', | |
scope: { | |
highchartsOptions: '=', | |
title: '@', | |
info: '@' | |
}, | |
templateUrl: 'template.html', | |
controllerAs: 'vm', |
This file contains hidden or 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
var ngModule = angular.module('app',[]); | |
// be sure to call new | |
ngModule | |
.component('login', new login()) |
This file contains hidden or 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
{"where": {"teamId": 1}} | |
use in swagger will url encode | |
{"include": ["price","item"]} | |
or | |
localhost:3000/api/stores/66525d9f-ca9a-4e6e-aaac-79f41746543f/storeitems?filter[include]=price&filter[include]=item | |
const filter = { | |
filter: { |
This file contains hidden or 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
'use strict'; | |
var gulp = require('gulp'); | |
var $ = require('gulp-load-plugins')(); | |
gulp.task('config', function () { | |
var config = require('../config.json'), | |
envConfig = config['development']; | |
[process.env.NODE_ENV === 'production' ? 'production' : 'development'] |
This file contains hidden or 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
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
source ~/git-completion.bash | |
function parse_git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "("${ref#refs/heads/}")" | |
} |
NewerOlder