Skip to content

Instantly share code, notes, and snippets.

@mbildner
Created September 24, 2015 15:07
Show Gist options
  • Save mbildner/e111a52ed05ff1a6e434 to your computer and use it in GitHub Desktop.
Save mbildner/e111a52ed05ff1a6e434 to your computer and use it in GitHub Desktop.
<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