JSFiddle - React, Tailwind, and code Playground

by RajamohanShilpa A

HTML

<script src="//code.angularjs.org/1.4.8/angular-route.js"></script>
<span ng-controller="sampleCtrl1">
  {{testObj}} 
  <test-dir>  
   {{ngTest}}
  </test-dir>
</span>

CoffeeScript

do()->
 app = angular.module 'sampleApp',[]  
 app.controller 'sampleCtrl1',($scope)->
  $scope.testObj = "Test Module"  
  return
 app.directive "testDir",()->
  debugger
  return{
   restrict:'AE'
   link: (scope,attr,ctrl)->
    debugger
    scope.ngTest = "Test from directive";
    return
  }
 angular.bootstrap document, ['sampleApp']
 return