I want to show the countdown timer. I link to the following page
http://siddii.imtqy.com/angular-timer/
But I get the following error.
Error: Invalid allocation area for the timer directive: @?
Can someone tell me what I'm missing.
index.html
<!DOCTYPE html>
<html ng-app="app">
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javascript" src="angular-timer.min.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body>
<timer end-time="1451628000000">{{days}} days, {{hours}} hours, {{minutes}} minutes, {{seconds}} seconds.</timer>
</body>
</html>
app.js
var appModule=angular.module('app', ['timer']);
source
share