Skip to content

Instantly share code, notes, and snippets.

View christopherthielen's full-sized avatar

Chris Thielen christopherthielen

View GitHub Profile
// contact is a RevertableModel which is injected from the state's resolve data.
export class EditContactController{
constructor($state, dialogService, Contacts, contact) {
this.$state = $state;
this.dialogService = dialogService;
this.Contacts = Contacts;
this.contact = contact.editableModel;
this.clearDirty = () => contact.clearDirty();
}
/**
* State-based routing for AngularJS
* @version v0.2.15-dev-2016-01-23
* @link http://angular-ui.github.com/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
/* commonjs package manager support (eg componentjs) */
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){
module.exports = 'ui.router';
@christopherthielen
christopherthielen / ui-router.js
Last active January 9, 2016 01:06
angular ui-router 1.0.0.alpha.1
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["ui-router-core"] = factory();
else
root["ui-router-core"] = factory();
})(this, function() {
  • Four small (5") corn tortillas
  • One filet of your favorite whitefish (tilapia, etc)
  • One jalapeño, finely diced
  • One bunch fresh cilantro, chopped
  • One avocado, sliced
  • One green onion, chopped
  • One lime wedge
  • Sour cream
  • Salt and Spices for fish (whatever you like, sometimes something: cumin based; cajun; creole; curry)
@christopherthielen
christopherthielen / ct-ui-router-extras.js
Created October 13, 2015 13:14
v0.1.0-pre5 ui-router-extras
/**
* UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise
* Monolithic build (all modules)
* @version 0.1.0-pre5
* @link http://christopherthielen.github.io/ui-router-extras/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function (root, factory) {
'use strict';
@christopherthielen
christopherthielen / ct-ui-router-extras.js
Created October 13, 2015 11:32
v0.0.15-pre4 ui-router-extras
/**
* UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise
* Monolithic build (all modules)
* @version 0.0.15-pre4
* @link http://christopherthielen.github.io/ui-router-extras/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function (root, factory) {
'use strict';
@christopherthielen
christopherthielen / ct-ui-router-extras.js
Created October 9, 2015 21:15
v0.0.15-pre3 ui-router-extras
/**
* UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise
* Monolithic build (all modules)
* @version 0.0.15-pre3
* @link http://christopherthielen.github.io/ui-router-extras/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function (root, factory) {
'use strict';
@christopherthielen
christopherthielen / ct-ui-router-extras.js
Created October 7, 2015 01:03
ui-router extras 0.0.15-pre2
/**
* UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise
* Monolithic build (all modules)
* @version 0.0.15-pre2
* @link http://christopherthielen.github.io/ui-router-extras/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function (root, factory) {
'use strict';
@christopherthielen
christopherthielen / ct-ui-router-extras.js
Created October 7, 2015 01:03
ui-router extras 0.0.15-pre2
/**
* UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise
* Monolithic build (all modules)
* @version 0.0.14
* @link http://christopherthielen.github.io/ui-router-extras/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function (root, factory) {
'use strict';
@christopherthielen
christopherthielen / ui-router-extras.js
Created October 5, 2015 01:38
ui-router extras 0.0.15-pre1
/**
* UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise
* Monolithic build (all modules)
* @version 0.0.15-pre1
* @link http://christopherthielen.github.io/ui-router-extras/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function (root, factory) {
'use strict';