Skip to content

Instantly share code, notes, and snippets.

@nicholasess
Last active August 29, 2015 14:04
Show Gist options
  • Save nicholasess/aa35e9cf98bedb52db32 to your computer and use it in GitHub Desktop.
Save nicholasess/aa35e9cf98bedb52db32 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html ng-app="app">
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body ng-controller="appcontroller">
<ul>
<li ng-repeat="users in usuarios">
<a href="base:{{base}}/index/chamada/slug/{{users.nome}}.html"> {{users.nome}} </a>
{{ users.mydate}}
</li>
</ul>
{{base}}
<a href="#" class="pull-left">
<img src="{{base}}./front/fonts/logo.png">
</a>
</div>
</body>
</html>
var app = angular.module('app', []);
app.constant('root', {
base: '/framework'
});
//@Controller: All controllers above
app.controller('appcontroller', function($scope, $http, root){
$scope.base = root.base;
$scope.usuarios = [
{"id":"1","nome":"Ricardo","idade":"29","mydate":"2014-07-28 12:39:51"},
{"id":"2","nome":"Ricardo","idade":"29","mydate":"2014-07-28 12:39:51"}
];
$scope.gridOptions = {data:'myData'};
//console.log($scope.gridOptions);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment