I am trying to make an empty grid using angularJS, I am 2 days new to it so I dont know much, this is what makes sense to me:
<!doctype html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>
<script>
var app = angular.module('calendar',[]);
app.controller('WeekMakerCtrl', function(){
for(i = 0; i < 12; i++){
this.rows.push("<tr> <tb>1</tb> <tb>2</tb> </tr>");
}
});
</script>
</head>
<body>
<div ng-controller="WeekMakerCtrl as week">
<table>
<p ng-repeat="row in week.rows">{{row}}</p>
</table>
</div>
</body>
</html>
but it doesn't display anything, what is wrong with it? PS: please don't over complicate an answer, remember that I am a newbie. thanks a lot