Angular directive

Basic with angular custom directive.

by Rishi Kumar

HTML

<script src="https://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-app="myApp">
<div ng-controller="MyCtrl1">
  <test></test>
</div>
<div ng-controller="MyCtrl2">
  <test></test>
</div>
</div>

JavaScript

var app = angular.module('myApp',[]);
app.controller("MyCtrl1",function($scope) {
    $scope.name = 'Superhero';
})
app.controller("MyCtrl2",function($scope) {
    $scope.name = 'Superhero';
})
app.directive()