Skip to content

Instantly share code, notes, and snippets.

View renevall's full-sized avatar
🏠
Working from home

Rene Vallecillo V renevall

🏠
Working from home
View GitHub Profile
@renevall
renevall / controller.js.coffee
Created June 25, 2013 23:01
Making Kaminari Pagination work as ajax request.
jQuery ->
$(document).on "click",'.pagination a[data-remote=true]', (e) ->
history.pushState {}, '', $(@).attr('href')
@renevall
renevall / index.html
Last active December 31, 2015 03:18
Angular2 - Compiled Files in their own folder
<script>
System.config({
packages: {
build: { //name must match folder
format: 'register',
defaultExtension: 'js'
}
}
});
System.import('build/boot') //import must match folder
import {Http, Headers,HTTP_PROVIDERS} from 'angular2/http';
import {Component} from 'angular2/core';
import {NgForm} from 'angular2/common';
import { fileupload } from "./upload"
import 'rxjs/add/operator/map';
@Component({
@renevall
renevall / confirm-dialog.component.html
Created January 27, 2017 05:52
Testing Dialog having it in a shared module
<h1 md-dialog-title>Would you like to order pizza?</h1>
<md-dialog-actions>
<button (click)="dialogRef.close('yes')">Yes</button>
<button md-dialog-close>No</button>
</md-dialog-actions>