Skip to content

Instantly share code, notes, and snippets.

View hiepxanh's full-sized avatar

hiepxanh hiepxanh

View GitHub Profile
@GabrielUlici
GabrielUlici / webpack.config.js
Created October 8, 2017 00:28
ionic-angular@3.7.0 env fix
var path = require('path');
var useDefaultConfig = require('@ionic/app-scripts/config/webpack.config.js');
var procEnv = process.env.IONIC_ENV;
module.exports = function () {
useDefaultConfig[procEnv].resolve.alias = {
"@app/env": path.resolve('./src/environments/environment' + (process.env.IONIC_ENV === 'prod' ? '' : '.' + process.env.IONIC_ENV) + '.ts')
};
@alpavlove
alpavlove / angular2_rxjs_dragabble.directive.ts
Created March 21, 2016 09:15
angular2 rxjs dragabble directive
import { ElementRef, Directive, HostListener, Renderer } from 'angular2/core';
import { Subject } from 'rxjs';
@Directive({
selector: '[draggable]'
})
export class Draggable {
mousedrag;
mouseup = new Subject();
mousedown = new Subject();