adding $state.controlledBy( controller[, state_name ])
function.
well, if you want to see if the current state is the "last valid state", that's not a parent of currently active state.
angular.module( 'foo', [] ) | |
.service( 'Foo', service ) | |
.directive( 'foo', directive ); | |
function service() { /* ... */ } | |
function directive() { | |
return { | |
controller : controller, | |
controllerAs : 'fooCtrl', |
gulp.task( 'templates', function () { | |
// this is the partials.js | |
var wrapper = require( './partials' ); | |
return gulp.src( 'assets/partials/**/*.html' ) | |
.pipe( $.plumber() ) | |
.pipe( wrapper({ | |
// this will be added to the file path (template id) | |
root : '', | |
// this will be stripped away from the file path (template id) |
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
$foo : null; | |
$bar : false; | |
.test { | |
@if not $foo { |
<snippet> | |
<content><![CDATA[ | |
/* global define */ | |
define( function ( require, exports, module ) { | |
'use strict'; | |
$1 | |
}); | |
]]></content> |
( function( requirejs ) { | |
'use strict'; | |
requirejs.config({ | |
// ... config goes here | |
}); | |
})( typeof exports === 'object' ? { | |
config : function ( cfg ) { | |
'use strict'; |
export default class FooController { | |
// @ngInject | |
constructor( $document ) { | |
console.log( $codument ); | |
} | |
} |
{ | |
"tasks": { | |
"gulp": "gulp", | |
"dev": "gulp watch" | |
}, | |
"devDependencies": { | |
"gulp": "*" | |
} | |
} |
OUTPUT = sprites/svg-defs-sprite | |
reverse = $(2) $(1) | |
id = $(shell basename $(1) | sed 's/^ic_//;s/_24px\.svg$$//;s/_/-/g' ) | |
extract = $$(cat $(1) | egrep -o $(2) | tr '\n' ' ' | sed "s/id=\"/id=\"$(call id,$(1))-/g") | |
src := $(wildcard */svg/production) | |
dest := $(patsubst %/svg/production,$(OUTPUT)/%.svg,$(src)) | |
svg_start := '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs>' |