Skip to content

Instantly share code, notes, and snippets.

View duizendnegen's full-sized avatar

Pepijn Schoen duizendnegen

View GitHub Profile
import Ember from 'ember';
export default Ember.Route.extend({
model: function(params) {
var user = this.store.find('user', params.id);
var files = this.store.find('files');
return Ember.RSVP.hash({
user: user,
files: files
export var initialize = function(/* container, application */) {
$.getScript("/path/to/js", function() {
// do any computations you have to do once loaded
});
};
export default {
name: 'lazyloading',
initialize: initialize
};
@duizendnegen
duizendnegen / Global.asax.cs
Last active February 4, 2017 11:38
Sample C# MVC project to fetch index.html for ember-deploy-azure
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;
namespace EmberDeploy
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
public class MvcApplication : System.Web.HttpApplication
{