Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim Kindberg timkindberg

View GitHub Profile
@timkindberg
timkindberg / minimal_jsbin.js
Created Feb 23, 2017
Minimal JSBin TamperMonkey Script
View minimal_jsbin.js
// ==UserScript==
// @name Minimal JSBin
// @namespace http://egghead.io/
// @version 0.1
// @description Hide distractions in jsbin to help learners focus on taught content
// @author Tim Kindberg
// @include https://jsbin.com*
// @grant none
// ==/UserScript==
View angular2.md

Angular 2

A balance of power and simplicity.

Developed by True Stewards:

  • Angular 2 is a careful, methodical reinvention of a mature, comprehensive framework.
  • Transparent and take community feedback and contributions.
  • Google
  • Performance driven development.
  • Embraces web standards and web-component-friendly.
@timkindberg
timkindberg / app.ts
Created Dec 9, 2015
Example of Directives Injecting Directives
View app.ts
import {Component, bootstrap} from 'angular2/angular2';
import {Tabs} from "./Tabs";
import {Tab} from "./Tab";
@Component({
selector: 'hello-app',
directives: [Tabs, Tab],
template: `
// Doesn't work
<div tabs>
View ng-forward.0.0.1-alpha.10.js
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
(function (global){
"use strict";
_dereq_(188);
_dereq_(189);
if (global._babelPolyfill) {
throw new Error("only one instance of babel/polyfill is allowed");
View ng-forward.0.0.1-alpha.8.js
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
(function (global){
"use strict";
_dereq_(180);
_dereq_(181);
if (global._babelPolyfill) {
throw new Error("only one instance of babel/polyfill is allowed");
@timkindberg
timkindberg / app.js
Created Oct 26, 2015
ng-forward ng1 migration (part 2 - alternative)
View app.js
import { bundle } from 'ng-forward';
import { ComponentA } from './component-a';
// We can create a bundled module from ComponentA
// You can then reference that module elsewhere for
// non-converted components and services
bundle('app', ComponentA);
@timkindberg
timkindberg / app.js
Last active Oct 26, 2015
ng-forward ng1 migration (part 1 - alternative)
View app.js
import { bundle } from 'ng-forward';
import { ComponentA } from './component-a';
// We can create a bundled module from ComponentA
// You can then reference that module elsewhere for
// non-converted components and services
bundle('app', ComponentA);
@timkindberg
timkindberg / app.js
Created Oct 22, 2015
ng-forward ng1 migration (part 2)
View app.js
import { componentAModule } from './component-a';
angular.module('app', [componentAModule]);
@timkindberg
timkindberg / app.js
Last active Oct 25, 2015
ng-forward ng1 migration (part 1)
View app.js
import { componentAModule } from './component-a';
angular.module('app', [componentAModule]);
@timkindberg
timkindberg / app.js
Last active Oct 22, 2015
ng-forward ng1 migration (before)
View app.js
angular.module('app', []);
You can’t perform that action at this time.