Skip to content

Instantly share code, notes, and snippets.

View fxck's full-sized avatar

Aleš fxck

View GitHub Profile
@fxck
fxck / app.component.html
Last active March 6, 2017 10:34
material2 select
<div style="padding: 7px">
<sub-component
[options]="options$ | async"
[param]="routeParam$ | async">
</sub-component>
<p *ngIf="version | async" style="color: #333">
Using Angular Material
(SHA {{ (version | async)?.commit.message.split(" ")[0] }}) from
@fxck
fxck / index.html
Created February 22, 2017 11:24
Angular Material Plunker Template
<!DOCTYPE html>
<html>
<head>
<title>normalizr playgr</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/typescript/2.1.1/typescript.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.1/core.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.41/system.js"></script>
<!-- Configure SystemJS -->
const DESTROY = 'ngOnDestroy';
export function Lifecycle(name?: string): PropertyDecorator {
return function(target, prop: string) {
const namex = !name ? prop.slice(0, -1) : name;
const handler = target[namex];
const onDestroy = target[DESTROY];
if (namex !== DESTROY) {

How to run nightly version of @ngrx/store along with new @ngrx/effects

Add new packages to your dependencies

Effects and store v2 are not on npm yet, so download them from my github.

"@ngrx/core": "1.0.0",
"@ngrx/store": "fxck/store#v2-test",
"@ngrx/effects": "fxck/effects",
@fxck
fxck / config.js
Last active May 25, 2016 23:41
ng2-permission vs. @ngrx/router
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.1'; // lock in the angular package version; do not let it float to current!
@fxck
fxck / config.js
Created May 10, 2016 17:26
ng2-permission vs. @ngrx/router
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.1'; // lock in the angular package version; do not let it float to current!
@fxck
fxck / config.js
Last active May 10, 2016 20:00
ng2-permission vs. @ngrx/router
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.1'; // lock in the angular package version; do not let it float to current!
@fxck
fxck / config.js
Last active May 10, 2016 16:37
ng2-permission vs. @ngrx/router
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.1'; // lock in the angular package version; do not let it float to current!
@fxck
fxck / config.js
Created May 10, 2016 16:21
ng2-permission vs. @ngrx/router
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.1'; // lock in the angular package version; do not let it float to current!
@fxck
fxck / config.js
Last active May 10, 2016 16:20
ng2-permission vs. @ngrx/router
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.1'; // lock in the angular package version; do not let it float to current!