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'
];
There was a big rewrite to make things more modular (eventually, there will be a plugin system). Given problems in the past, we're very slowly adding new features in to make sure we don't have another big break.
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.
I started to checking the code of angular hint, I found directives, dom and some other components has beed disabled. Why?