alibaba / alibaba/structure-view

AngularJS v1.6.4: No tag in the file.

Open
#5 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
35
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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:

```javascript
/*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();
}
});
}]);
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report in Atom with the provided AngularJS controller file and the package's JavaScript structure-view entry point. First determine why this file produces “No tag in the file”; done means the controller file is parsed without that error and its available symbols appear in the structure view.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.