Skip to content

Instantly share code, notes, and snippets.

View givanse's full-sized avatar
:shipit:
ON A BOAT

Gastón Silva givanse

:shipit:
ON A BOAT
View GitHub Profile
@givanse
givanse / index.html
Last active August 29, 2015 14:01
Action Bubbling With Nested Routes
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Action Bubbling With Nested Routes" />
<!-- http://emberjs.jsbin.com/latib/1/edit?html,js,console,output -->
<meta charset="utf-8">
<title>Ember Starter Kit</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script>
@givanse
givanse / jsbin.zirut.html
Created May 13, 2014 11:02
Nested resources showing the 'render out of order' bug
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Nested resources showing the 'render out of order' bug" />
<meta charset="utf-8">
<title>render out of order bug</title>
</head>
<body>
<script type="text/x-handlebars">
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
<script src="http://builds.emberjs.com.s3.amazonaws.com/tags/v1.0.0/ember.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
@givanse
givanse / jsbin.ovumod.html
Created May 11, 2014 20:07
One route handles two models/controllers/templates and renders in a single template with two {{outlet}}s.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>AB</title>
</head>
<body>
<script type="text/x-handlebars">
One route handles 2 models as 1, with 2 templates.
@givanse
givanse / one-controlelr-two-templates.html
Last active August 29, 2015 14:01
Two separate Routes/Templates sharing a single Controller.
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
<script src="http://builds.emberjs.com.s3.amazonaws.com/tags/v1.0.0/ember.js"></script>
<meta charset="utf-8">
<title>1 controller, 2 templates</title>
</head>
<body>