btford / btford/astral-angular-annotate

Add support for injectable functions provided as constants

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6
Forks
8
PR merge metrics
No merged PRs in 30d

Description

For example: when providing a resolve function to ui-router (maybe also the angular router) dependencies are injected by the router machinery, rather than globally, such that $state and $stateParams dependencies are populated correctly. Defining the injectable function as a constant, saves having to package it up inside the context in which it is being used.

```
angular.module('foo', []).constant('resolveFunction', function(dep1, dep2) {})
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the repository's AngularJS dependency-injection annotation pass and tracing how functions provided through module constants are handled. Determine the expected behavior for a constant containing an injectable function, including router-supplied dependencies; done means that function is annotated correctly without wrapping it in another context.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.