By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
ADAMÍROVÁ | |
ANTONYOVÁ | |
BABINSKÁ | |
BAKOŠOVÁ | |
BALÁNOVÁ | |
BARTEL | |
BEKROVÁ | |
BIEDERMANN | |
BLUDSKÝ | |
BRABLÍKOVÁ |
web: node server |
// this will be much more efficient than $watch() | |
app.factory('FilteredArray', function($firebaseArray) { | |
function FilteredArray(ref, filterFn) { | |
this.filterFn = filterFn; | |
return $firebaseArray.call(this, ref); | |
} | |
FilteredArray.prototype.$$added = function(snap) { | |
var rec = $firebaseArray.prototype.$$added.call(this, snap); | |
if( !this.filterFn || this.filterFn(rec) ) { | |
return rec; |
//Use this directive to open external links using inAppBrowser cordova plugin | |
.directive('dynamicAnchorFix', function($ionicGesture, $timeout, $cordovaInAppBrowser) { | |
return { | |
scope: {}, | |
link: function(scope, element, attrs) { | |
$timeout(function(){ | |
var anchors = element.find('a'); | |
if(anchors.length > 0) | |
{ | |
angular.forEach(anchors, function(a) { |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
import { Inject } from 'lib/angular2' | |
import { File, Transfer } from 'ionic-native' | |
import { Events } from 'events' | |
import { Config } from 'config/env' | |
@Inject(Events, Config) | |
export class CordovaUploadTransport { | |
get cacheDirectory() { | |
return cordova.file.tempDirectory || cordova.file.cacheDirectory | |
} |
<?php | |
/** | |
* Funkce pro kontrolu čísla bankovního účtu v ČR. | |
* @param $number string Řetězec obsahující číslo bankovního účtu ve formátu: | |
* [prefix]-základní část/kód bank. | |
* Prefix je volitelná část obsahující až šest čísel. Od | |
* základní části je oddělen pomlčnou. | |
* Základní část se skládá ze dvou až deseti čísel. | |
* Poslední částí je kód banky. Ten je složen ze čtyř čísel |
/* Using a JavaScript proxy for a super low code REST client */ | |
// via https://dev.to/dipsaus9/javascript-lets-create-aproxy-19hg | |
// also see https://towardsdatascience.com/why-to-use-javascript-proxy-5cdc69d943e3 | |
// also see https://github.com/fastify/manifetch | |
// also see https://github.com/flash-oss/allserver | |
// and https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb | |
const createApi = (url) => { | |
return new Proxy({}, { | |
get(target, key) { |