JetBrains / JetBrains/resharper-angularjs

Cannot resolve custom directive tag whilst it does suggest the tag?

Open
#52 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
135
Forks
22
PR merge metrics
No merged PRs in 30d

Description

When adding elements my custom directive gets suggested:
![image](https://cloud.githubusercontent.com/assets/6581574/26479771/5293760c-4208-11e7-9f0c-2a8683ac2b28.png)

However once I complete it, it cannot be resolved.
![image](https://cloud.githubusercontent.com/assets/6581574/26479745/1df3d93c-4208-11e7-9af2-632b459afd29.png)

First part of code for directive:
```JS

/**
* @ngdoc directive
* @name lxnInput
* @restrict E
* @scope
* @param {object} lxn-options configuration object for direcctive}
*/

(function() {
var lexiaNumberDirectives = angular.module("lexiaNumberDirectives", []);

lexiaNumberDirectives.directive("lxnInput", function () {
return {
//Restrict to usage only
restrict: 'E',
require: 'ngModel',
scope: {
ngModel: '=ngModel',
ngDisabled: '&',
lxOptions: '@lxnOptions'
},

```

The javascript file is included but not in the file itself (in the main template that is used on many pages).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.