Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Why controllers, dom and directives not working? #95

@ouchxp

Description

@ouchxp

I've tried to use angular-hint in my project, I've got the error message for module. But when I wrote these code to test the error for controller and directives, I got nothing.

angular
    .module('app.layout')
    .controller('sidebarCtrl', sidebarCtrl);
sidebarCtrl.$inject = ['$state'];
function sidebarCtrl($state) {
    const vm = this;
}
...


<div>
  <div ng-repaet="vm.giftSchemes">abc</div>
</div>

I started to checking the code of angular hint, I found directives, dom and some other components has beed disabled. Why?

// Load angular hint modules
require('./src/modules/controllers');
// require('./src/modules/directives');
// require('./src/modules/dom');
require('./src/modules/events');
// require('./src/modules/interpolation');
require('./src/modules/modules');
require('./src/modules/scopes');

// List of all possible modules
// The default ng-hint behavior loads all modules
var AVAILABLE_MODULES = [
  'ngHintControllers',
// 'ngHintDirectives',
//  'ngHintDom',
  'ngHintEvents',
//  'ngHintInterpolation',
  'ngHintModules',
  'ngHintScopes'
];

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