Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <head>
    <script src="https://code.jquery.com/jquery.min.js"></script>
    <meta charset="utf-8">
    <title>Ember Starter Kit</title>
    <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css">
    <script src="http://builds.emberjs.com/tags/v1.13.2/ember-template-compiler.js"></script>
    <script src="http://builds.emberjs.com/tags/v1.13.2/ember.debug.js"></script>
  </head>
  <body>
    <script type="text/x-handlebars">
      <h1>Component Actions Example</h1>
      {{comp-one}}
    </script>
    <script type="text/x-handlebars" data-template-name="components/comp-one">
      {{comp-two handleClick=(action 'handleClick' '1')}}
    </script>
    <script type="text/x-handlebars" data-template-name="components/comp-two">
      {{comp-three handleClick=(action handleClick '2' '3')}}
    </script>
    <script type="text/x-handlebars" data-template-name="components/comp-three">
      <button {{action 'buttonClicked'}}>Click me</button>
    </script>
  </body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
sly7-7pro
0viewers