Skip to content

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

@lexia-wouter-vanrij

Description

@lexia-wouter-vanrij

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions