Created
September 24, 2015 15:07
-
-
Save mbildner/e111a52ed05ff1a6e434 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-app="myApp"> | |
<div ng-controller="MyCtrl"> | |
<div ng-repeat="n in names track by n[$index]"> | |
{{n}} {{$index}} {{$even}} {{$first}} {{$last}} | |
</div> | |
</div> | |
</div> | |
<script> | |
var myApp = angular.module('myApp',[]); | |
//myApp.directive('myDirective', function() {}); | |
//myApp.factory('myService', function() {}); | |
myApp.controller('MyCtrl', function($scope){ | |
$scope.name = 'Superhero'; | |
$scope.names = ['moshe', 'moshe', 'colin']; | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment