Reputation: 418
I have this code, from a tutorial I've followed online; unfortunately it's not working, and I can't find why because I'm mentioning the script, the app, the controller etc.. Any help would be appreciated!
Upvotes: 0
Views: 352
Reputation: 176
I am new to angular, but I think you are calling your module right after you create it and you don't need to do that. Remove .queryLogTool that is right before .controller. It should look like:
angular.module("queryLogTool", []).controller("queryLogToolController", function ($scope) {
Upvotes: 1
Reputation: 732
Change your .js to this:
var app = angular.module("queryLogTool", []);
app.controller("queryLogToolController", function ($scope) {
$scope.logs = [
{
'Issuer': 'AngularJSTest',
'Issue': 'AngularJS not working',
'Priority': 'High',
'Status': 'Open',
'DateOfIssue': '19/01/2015',
'DateResolved': '19/04/2015'
}
];
});
Look at this plnkr: Plnkr
Upvotes: 1