resharper-angularjs icon indicating copy to clipboard operation
resharper-angularjs copied to clipboard

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

Open lexia-wouter-vanrij opened this issue 7 years ago • 2 comments

When adding elements my custom directive gets suggested: image

However once I complete it, it cannot be resolved. image

First part of code for directive:


/**
 * @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 <lxn-input> 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).

lexia-wouter-vanrij avatar May 26 '17 03:05 lexia-wouter-vanrij

What versions of ReSharper and Visual Studio are you using?

citizenmatt avatar May 26 '17 11:05 citizenmatt

I am using Visual Studio Enterprise 2017 and Resharper 2017.1

lexia-wouter-vanrij avatar May 30 '17 04:05 lexia-wouter-vanrij