I have this lines ofcode in my HTML,
<div ng-app='myApp' ng-controller='myCtrl'>
<h5 style="margin: 0;">As of {{ date-today }}</h5>
</div>
In my JS,
angular.module('myApp', [])
.controller('myCtrl', ['$scope', '$compile', '$http', function($scope, $compile, $http){
var today = new Date();
$scope.date_today = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
initTables($scope, $compile);
}
It is not working. It displays {{ }}.
date_today!==date-today