structure-view icon indicating copy to clipboard operation
structure-view copied to clipboard

AngularJS v1.6.4: No tag in the file.

Open DaveTacker opened this issue 8 years ago • 2 comments

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();
        }
    });
}]);

DaveTacker avatar Sep 17 '17 07:09 DaveTacker

@kneeki Thanks for reporting this issue, structure-view would take this case into consideration.

Joouis avatar Sep 20 '17 10:09 Joouis

I have the same problem using requirejs.

jrd avatar Oct 30 '17 14:10 jrd