JetBrains / JetBrains/resharper-angularjs

$scope detection, for intellisense, function creation and more

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
135
Forks
22
PR merge metrics
No merged PRs in 30d

Description

In Angular the binding is done via $scope, it can bind properties and functions.

Find out the current module (if any declared) with ng-app attribute and the used controller with the ng-controller

$scope properties are defined with ng-model and {{propertyName}} in the template. Also it can be assigned
in the controller constructor. the name of the parameter is allways $scope.

If no module name is given in ng-app than the name of the controller is the name of the "class". If a module name is given then the controller name is define in the module configuration.

$scope functions are defined on event binding or on $scope.

Providing Intellisense on the $scope parameter, ng-model and the template placeholder {{}} also in the expression which call controller functions.

Provide Function creation if the $scope function is not defined in the constructor, show warning (or error) of a function is used which is not defined.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.