zatziky zatziky - 1 year ago 160
AngularJS Question

template: unresolved variable or type $ctrl

How to tell PhpStorm/WebStorm that

in a template is known and also help it decide the controller it belongs to (maybe using jsdoc)?

I create components in this manner in Angular 1.5:

.component('myComponent', {
templateUrl: "my.component.html",
controller : [

didn't help...

HTML snippet of where the problem appears (

<div class="entity-summary clear" ng-click="$ctrl.toggleInfo()">
<div class="entity-col">
<div class="entity-col">

Answer Source

Unfortunately Angular 1.5 components are not yet fully supported, please follow WEB-20339 for updates

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download