- Trocar o
www.mywebsite.compelo endereço do site em produção; - Incluir isso no início do seu script.
Se passar o parâmetro ?development na URL, ele ignora e mostra os console.log().
| /* ******************************************************************************************* | |
| * THE UPDATED VERSION IS AVAILABLE AT | |
| * https://github.com/LeCoupa/awesome-cheatsheets | |
| * ******************************************************************************************* */ | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
| // Import all | |
| import Rx from "rxjs/Rx"; | |
| Rx.Observable | |
| .interval(200) | |
| .take(9) | |
| .map(x => x + "!!!") | |
| .bufferCount(2) | |
| .subscribe(::console.log); |
| import { Directive, Input } from '@angular/core'; | |
| @Directive({ | |
| selector: '[limit]', | |
| host: { | |
| '(keypress)': '_onKeypress($event)', | |
| } | |
| }) | |
| export class LimitDirective { | |
| @Input('limit') limit; |