Linux installation notes (tested under Ubuntu 14.04LTS/12.04LTS), assuming VirtualBox is already installed on host.
This file contains 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
<p>Here comes the <b>bindable HTML</b> popover contents!!!</p> | |
<p>Number: {{number}}</p> |
This file contains 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
/** | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2013 Thom Seddon | |
* Copyright (c) 2010 Google | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
- install jspm beta:
npm install -g jspm@beta
- set up your project:
jspm init
- install dependencies:
jspm install angular2 reflect-metadata zone.js es6-shim
This will create a jspm_packages
folder, and a config.js
file.
Open the config.js
file - this file manages options for the System.js loader - tweak it as appropriate
This file contains 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
var path = require('path'), | |
gulp = require("gulp"), | |
gutil = require("gulp-util"), | |
gfilter = require('gulp-filter'), | |
mocha = require('gulp-mocha'), | |
awspublish = require('gulp-awspublish'); | |
var webpack = require("webpack"), | |
webpackGB = require('gulp-webpack-build'), | |
WebpackDevServer = require("webpack-dev-server"); |
This file contains 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
#!/usr/bin/env node | |
var fs = require('fs'); | |
if (process.argv.length <= 3) { | |
console.log("Usage: " + __filename + " file1 file2"); | |
process.exit(-1); | |
} | |
var file1 = process.argv[2]; | |
var file2 = process.argv[3]; |
This file contains 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
describe('Directive test', function () { | |
var container, scope; | |
var aStub; | |
beforeEach(function () { | |
aStub = sinon.stub(); | |
module('testmodule', function ($provide) { | |
$provide.value('someService', aStub); | |
}); |
This file contains 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
```javascript | |
import errorize from '../../../utils/errorize'; | |
import { module, test } from 'qunit'; | |
module('Unit | Utility | errorize'); | |
test('errorize', function(assert) { | |
var errors = { | |
responseJSON: { | |
errors:[ |
This file contains 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
import Ember from 'ember'; | |
var errorize = Ember.Object.extend({ | |
init() { | |
this._super(); | |
this.set('errorsList', {}); | |
}, | |
// test should check various inputs and verify addToErrorsList is called with proper arguments | |
processError(error) { |