AngularJS v1.6.4: No tag in the file.
DaveTacker opened this issue · 2 comments
DaveTacker commented
I'm given No tag in the file.
when using this package in my AngularJS controller files. Here's a short preview of what one of my files looks like:
/*jslint browser: true, devel: true*/
/*global $ */
window.app.controller('alerts', ['$scope', '$http', function alerts($scope, $http) {
"use strict";
console.log('alerts controller');
$scope.alerts = [];
function foo() {
alert('bar');
}
$http.get('api/dash/getAlerts.php').then(function (response) {
if (!$rootScope.checkResponse(response)) {
return false;
}
$scope.alerts = response.data.alerts;
}, function (response) {
console.error(response);
if (confirm("The server encountered a temporary error and could not complete your request. Do you want to reload to try again?")) {
window.location.reload();
}
});
}]);
Joouis commented
@kneeki Thanks for reporting this issue, structure-view would take this case into consideration.
jrd commented
I have the same problem using requirejs.