A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
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 https://astexplorer.net/ | |
export default function transformer(file, api) { | |
const j = api.jscodeshift; | |
const root = j(file.source); | |
const gulpTaskCalls = root.find(j.CallExpression, { | |
callee: { | |
object: { | |
name: 'gulp' |
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
.factory "Modal", ($modal, $q) -> | |
open: (options) -> | |
deferred = $q.defer() | |
modal = {} | |
options.locals = | |
$modalInstance: | |
hide: -> | |
modal.hide() | |
close: (result) -> |