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
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
angular.qp.connect('module.name', function(connect){ | |
}, 'module.dependency'); |
var config = { | |
name : 'Name', | |
simple : true, | |
storages : { | |
AdapterHttpApi : { | |
resource : '/', | |
doubt : PERSISTENT | |
} | |
} | |
}; |
px('moduleName', function(){ | |
this.controller('###Name###Controller', ###Name###ControllerFactory); | |
###Name###ControllerFactory.$inject = ['$scope']; | |
function ###Name###ControllerFactory($scope){ | |
var vm = this; | |
}; |
px('moduleName', function(){ | |
/** | |
* directive definition of `###directiveName###` | |
* | |
*/ | |
this.directive('###directiveName###', ###directiveName###Factory); | |
###directiveName###Factory.$inject = []; |
connect.directive('<directiveName>', DirectiveNameFactory); | |
DirectiveNameFactory.$inject = []; | |
function DirectiveNameFactory(){ | |
// === InjectingFunction === // | |
// Logic is executed 0 or 1 times per app (depending on if directive is used). | |
// Useful for bootstrap and global configuration | |
var directiveDefinitionObject = { |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="---- (\u @ \h) ------------------------------ \d \T ----\n| \w \[\033[32m\]\$(parse_git_branch)\[\033[00m\] \n| > " | |
alias cp='cp -iv' | |
alias mv='mv -iv' | |
alias mkdir='mkdir -pv' | |
alias ll='ls -FGlAhp' |