Skip to content

Instantly share code, notes, and snippets.

View vance's full-sized avatar

ForeverScape vance

View GitHub Profile
@vance
vance / angular-ui-grid-expandable-hotfix
Last active August 9, 2016 18:48
compiled fix for issue #5395
/*
vance built this new from source with modifications. see pull request
https://github.com/angular-ui/ui-grid/pull/5395/commits/dc183a1eeda5d19dbb5472c658cb78ef54c54fa2
*/
/*!
* ui-grid - v3.1.1-68681d7 - 2016-05-10
This file has been truncated, but you can view the full file.
/*
vance built this new from source with modifications. see pull request
https://github.com/angular-ui/ui-grid/pull/5395/commits/dc183a1eeda5d19dbb5472c658cb78ef54c54fa2
*/
/*!
* ui-grid - v3.1.1-68681d7 - 2016-05-10
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><script type="text/javascript">window.NREUM||(NREUM={});NREUM.info = {"beacon":"bam.nr-data.net","errorBeacon":"bam.nr-data.net","licenseKey":"ad9513338b","applicationID":"2495152,2495041","transactionName":"MVBbNkcACBADUU1QWggafQ1BLwMXIV1XTUcJWVUHR04kAgxVaVhSAxpwDFEEHg==","queueTime":0,"applicationTime":767,"ttGuid":"A2DC0D7FDA2E0DB4","agent":"js-agent.newrelic.com/nr-593.min.js"}</script><script type="text/javascript">(window.NREUM||(NREUM={})).loader_config={xpid:"VwIAVVRbGwEEXVRTAgM="};window.NREUM||(NREUM={}),__nr_require=function(t,e,n){function r(n){if(!e[n]){var o=e[n]={exports:{}};t[n][0].call(o.exports,function(e){var o=t[n][1][e];return r(o?o:e)},o,o.exports)}return e[n].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<n.length;o++)r(n[o]);return r}({QJf3ax:[function(t,e){function n(t){function e(e,n,a){t&&t(e,n,a),a||(a={});for(var c=s(e),f=c.
(function() {
'use strict';
/*
* @licensewr
* angular-modal v0.3.0
* (c) 2013 Brian Ford http://briantford.com
* License: MIT
<div style="padding:30px; border: 1px dotted #F2F9F9;">
<br/><br/>
Partial to test Input Binding
<pre ng-bind="someControl.testModel.name"></pre>
<hr/>
<some-input showDebug="true" boundModel="{{someControl.testModel.name}}" bind-polymer></some-input>
</div>
@vance
vance / some-element.html
Last active August 29, 2015 14:13
custom element, trying to bind object
<link rel="import" href="../../../../bower_components/polymer/polymer.html" />
<polymer-element name="some-input" attributes="boundModel">
<template>
<div>
<input id="inputField" type="text" value="{{boundModel.prop}}" on-click="{{setFocus}}">
output: {{boundModel.prop}}
</div>
</template>
<script type="application/javascript">
@vance
vance / gist:db40c407fdb81ba762ca
Last active August 29, 2015 14:03
Directive that watches scope for data changes
app.directive('alertSuccess', function() {
return {
require: 'ngModel',
link: function(scope, ele, attrs, ngModelController) {
scope.$watch(attrs.ngModel, function(value) {
//broadcast to your GlobalNotificationController to bring in a dialog etc.
scope.$emit('dataUpdated', value)
});