Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting angularJS autcomplete in Webstorm/PHPStorm

How do I get auto-complete for angularjs syntax in strings. For example:

myscript.js

var List = function ($scope) {
    $scope.names = [
        "Ahmed",
        "Tom",
        "David",
        "Jessie"
    ];
};

HTML

<div>
    <label for="get_name">
        Find your name:
        <input type="search" name="search" id="search" ng-model="search"/>
    </label>
</div>

<div ng-controller="List">
    <ul>
        <li ng-repeat="name in names | filter:search">{{ name }}</li>
    </ul>
</div>

<script type="text/javascript" src="angular_1.0.7.js"></script>
<script type="text/javascript" src="myscript.js"></script>

This is basically a way to search to names. How do I get auto-complete to appear inside <li ng-repeat="name in names | filter:search">{{ name }}</li> inside ng-repeat.

I am using PHPStorm 6.0.3.

like image 609
Games Brainiac Avatar asked Aug 01 '13 19:08

Games Brainiac


1 Answers

You can use awesome AngularJS plugin from John Lindquist. http://plugins.jetbrains.com/plugin/6971

like image 53
Maxim Avatar answered Oct 19 '22 20:10

Maxim