Given an ES6 file, demo.es6
that contains template strings:
let x = 'x';
console.log(`x is ${ x }`);
The following code within a generator method throws a reference error (x is not defined):
// Github recognises this as Erlang | |
let x = 1; | |
export default class Demo { | |
constructor( ...args ) { | |
this.arr = [ ...args ]; | |
} | |
} |
Given an ES6 file, demo.es6
that contains template strings:
let x = 'x';
console.log(`x is ${ x }`);
The following code within a generator method throws a reference error (x is not defined):
I hereby claim:
To claim this, I am signing this object:
<a ng-href="{{ routes.get('account') }}">Your account</a> | |
<h2>Your friends</h2> | |
<ul> | |
<li ng-repeat="friend in friends"> | |
<a ng-href="{{ routes.get('user', { id: friend.id }) }}">{{ friend.name }}</a> | |
</li> | |
</ul> |
<a href="/account">Your account</a> | |
<h2>Your friends</h2> | |
<ul> | |
<li ng-repeat="friend in friends"> | |
<a ng-href="/users/{{ friend.id }}">{{ friend.name }}</a> | |
</li> | |
</ul> |
<!doctype> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="emoji.min.css"> | |
<script src="angular.min.js"></script> | |
<script src="emoji.min.js"></script> | |
</head> | |
<body ng-app ng-controller="AppCtrl"> | |
<textarea ng-model="message"></textarea> |
// Just hide them all | |
$(".comment-body").each(function (e) { | |
if($(this).text().trim() === "+1") { | |
$(this).closest(".discussion-bubble").hide(); | |
} | |
}); | |
// Hide them all and show a count of them next to the "participants" list | |
$(".pull-participation").append("<p class='quickstat' style='float:right'><b>" + $(".comment-body").filter(function (e) { | |
return $(this).text().trim() === "+1"; |
<!doctype html> | |
<html data-placeholder-live="false"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Placeholders.js Default Config</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css"> | |
</head> | |
<body class="placeholder-example"> | |
<input type="text" placeholder="I have a placeholder!"><br> | |
<input type="password" placeholder="Password placeholders!"><br> |
<!doctype html> | |
<html data-placeholder-focus="false"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Placeholders.js Default Config</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css"> | |
</head> | |
<body class="placeholder-example"> | |
<input type="text" placeholder="I have a placeholder!"><br> | |
<input type="password" placeholder="Password placeholders!"><br> |