-
-
Save nicholasess/aa35e9cf98bedb52db32 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!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> |
This file contains hidden or 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
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