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
import { ReplaySubject } from 'rxjs/ReplaySubject'; | |
import { Directive, Injectable, NgModule } from '@angular/core'; | |
@Injectable() | |
export class DummyProvider { | |
constructor() {} | |
} | |
@Injectable() |
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
The form example can be written this way to avoid having to register onChange on every field (within the same form): | |
<form onChange={this.inputHandler}> | |
... | |
<input type="text" name="blah" value={this.state.blah}/> | |
... | |
</form> | |
inputHandler: function(event) { | |
actions.propagateValue({ | |
field: event.target.name, |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
[gulp] Starting 'styles'... | |
[gulp] Starting 'reloadSync'... | |
[gulp] Finished 'reloadSync' after 216 μs | |
[gulp] Finished 'styles' after 395 ms |
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
var gulp = require('gulp'); | |
var jshint = require('gulp-jshint'); | |
var stylish = require('jshint-stylish'); | |
var mocha = require('gulp-mocha'); | |
var seq = require('run-sequence'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var logger = require('./lib/logger'); | |
var nodemon = require('gulp-nodemon'); | |
var sass = require('gulp-ruby-sass'); |