Skip to content

Instantly share code, notes, and snippets.

View evangalen's full-sized avatar

Emil van Galen evangalen

View GitHub Profile
@evangalen
evangalen / angularjs_directive_attribute_explanation.md
Created April 12, 2016 06:42 — forked from CMCDragonkai/angularjs_directive_attribute_explanation.md
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@evangalen
evangalen / index.html
Last active August 29, 2015 14:15 — forked from anonymous/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://cdn.rawgit.com/babel/babel.github.io/master/scripts/babel.js"></script>
</head>
<body>
<script id="jsbin-javascript" type="text/babel">class A {};</script></body>