Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lexia-wouter-vanrij opened this issue May 26, 2017 · 2 comments

Comments

@lexia-wouter-vanrij
Copy link

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).

@citizenmatt
Copy link
Member

What versions of ReSharper and Visual Studio are you using?

@lexia-wouter-vanrij
Copy link
Author

lexia-wouter-vanrij commented May 30, 2017

I am using Visual Studio Enterprise 2017 and Resharper 2017.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants