michaelbromley / michaelbromley/angular-es6
how angular-es6 inheritance should be provided?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 364
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Description
Parent-child relationship between controllers, directives.
In es5-angular these relationship are implemented using scope and scope inheritance.
Now we use classes, extends, super methods.
But my problem is when I create directive class and then controller class that uses some data from directive class, controller class will be a child of directive class, but in this case directive class constructor will be called 2 times, so I got an error : Multiple directives [searchBar (module: ontour), searchBar (module: ontour)] asking for template on.
It's a big question, i can't find any examples of it in this boilerplate and articles on web.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by locating the boilerplate's directive and controller definitions, then compare their ES5 scope-inheritance usage with the ES6 class and constructor behavior described here. The issue does not define a chosen inheritance design or a clear completion test, so the expected result would need to be agreed before implementation.
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
- 20/100