This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.config(function($stateProvider) { | |
// register a state decorator with ui-router. Decorate any property (I chose parent) | |
$stateProvider.decorator('parent', function (state, parentFn) { // read ui-router docs for decorator | |
// Get the resolves object for the state being registered | |
var resolves = state.self.resolve || {}; | |
angular.forEach(resolves, function(resolve, key) { // for each resolve | |
// get the resolve function. Support array style [“$foo”, function($foo){ }] | |
var resolveFn = angular.isArray(resolve) ? resolve.slice(-1) : resolve; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title>flex-direction:column bug reproduction</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/angular-material/0.11.4/angular-material.css"> | |
<style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Combine all reducers in this file and export the combined reducers. | |
* If we were to do this in store.js, reducers wouldn't be hot reloadable. | |
*/ | |
import { combineReducers } from 'redux'; | |
import { LOCATION_CHANGE } from 'react-router-redux'; | |
/* | |
* routeReducer |