112

There have been questions about the merits of specialized tags (Burninate specific event tags) and the redundancy of some tags related to AngularJS (https://meta.stackoverflow.com/questions/250923/duplicate-tags-ui-select2-and-angularjs-select2 and Duplicate AngularJS-related tags: [angularjs-ng-*] and [ng-*]) as well as whether there should be version-specific tags (Should there be a separate 'angularjs-2.0' tag?). And the plethora of tags was also discussed in Asking an [angular-ng-*] question is as easy as picking from four different tag formats.

[edit] Previous discussions have proposed tidying up by duping or merging tags - I think we need to go further.

I propose collapsing the 73+ sub-tags of AngularJS into . The observations that drive this are:

Cleaning this up is too big a job for little ol' me. Can we get some programmatic help to end the insanity?

I've collected some stats on these tags in a spreadsheet.

18
  • 2
    After a quick look at your spreadcheat I am inclined to say that I was right in wanting to keep angular-directive.
    – Knu
    Commented Jun 14, 2015 at 2:53
  • 6
    I think you may have missed some, there are (at least) three different prefixes used for AngularJS tags. Commented Jun 14, 2015 at 3:38
  • @KevinBrown - Ouch! I wish I'd found your question before I started this journey! I figured there were more; there are so many that wildcard searches result in strings that are too long for the input box. Because of that, I couldn't easily obtain an accurate count of the number of questions that were tagged with "sub-tags" but not angularjs.
    – Mogsdad
    Commented Jun 14, 2015 at 10:03
  • @KevinBrown - foiled by a bug in tag searching, if results are larger than a page! How else can we find all the tags?
    – Mogsdad
    Commented Jun 14, 2015 at 18:23
  • 8
    I would argue for keeping tags that relate to specific repos.
    – Rob J
    Commented Jun 14, 2015 at 23:20
  • Why hasn't someone come along and made a corny pun with this burninate request? Commented Jun 15, 2015 at 1:39
  • 17
    @BrandonBertelsen: The right angle just hasn't occurred to anyone yet. Commented Jun 15, 2015 at 6:40
  • 2
    You could say the angularjs tag family has taken a turn for the worse.
    – TylerH
    Commented Jun 15, 2015 at 15:44
  • 6
    "Is the angularjs directive tags too obtuse?"...ok, maybe not
    – codeMagic
    Commented Jun 15, 2015 at 15:48
  • 1
    This comment wall has diverged from the topic. Commented Jun 16, 2015 at 2:11
  • 3
    That's quite an acute observation you made there.
    – APerson
    Commented Jun 16, 2015 at 2:54
  • Is having these sub tags really a bad thing? If they all added the AngularJS tag then there won't be any problem at all. In fact, users can also look for questions more specifically to answer. Commented Jun 16, 2015 at 16:51
  • 1
    @Derek朕會功夫 I can see arguments for some of the sub tags, but the vast majority of them seem way too specific. I can't think of a good reason to have a tag for ng-if, for example.
    – Beofett
    Commented Jun 16, 2015 at 18:16
  • @Beofett In that case, maybe we should get rid off those that seem too specific, and leave the ones that are less specific alone, such as angular-promise. Commented Jun 16, 2015 at 18:21
  • 1
    @Derek朕會功夫 After reading Shog9's answer, I think it probably makes sense to leave even the ones that seem too specific for now, and instead focus on cleaning up the ones prefixed with angularjs-. While I'm not convinced ng-if or ng-show really need their own tags, they don't actively hurt, and I can understand the argument for directive-specific tags in general.
    – Beofett
    Commented Jun 16, 2015 at 18:33

4 Answers 4

41

Out of the "sub-tags" you have listed I count at least two that need to be kept:

In that case, , , and could collapse into .


Disclaimer: subjective opinion oncoming

1.X directives were complex enough to warrant a separate tag. Since is not part of the core anymore it shouldn't be "collapsed" into the generic . Even if we had/add a tag it couldn't hold it because it still exists with the same name.

10
  • 2
    There are possibly more groupings, and there a few that should survive - angular-e2e was another I'd wondered about. In the spreadsheet I pulled together, each tag that has 20% or more questions without overlap with angularjs need special attention. Still, it might suppress recurrence of tag-arama if these separate topics get renamed in some way to not appear to be "sub-tags".
    – Mogsdad
    Commented Jun 14, 2015 at 2:36
  • 2
    @Mogsdad anything not considered part of the core should, if it has enough traction, be warranted a tag. angularjs-ng-route is a special case that comes to mind since it's not builtin anymore.
    – Knu
    Commented Jun 14, 2015 at 2:46
  • 1
    Define "traction", given that when created, a tag will have one question, and no subscribers. Lots of these are in one or both of those situations. If traction is defined by use, then who monitors for non-use, and at what point do unused tags get cleaned up?
    – Mogsdad
    Commented Jun 14, 2015 at 18:26
  • 2
    I disagree with rolling all the angular-ui tags up. Each one of those tags listed are maintained in separate repos and by different people. I filter on angular-ui- bootstrap and would find it cumbersome to have them all lumped together.
    – Rob J
    Commented Jun 14, 2015 at 23:17
  • 1
    @RobJ join the discussion, then - We could use some additional concrete suggestions from someone really involved answering these. You must admit, the tags are a mess. What would you suggest, if "doing nothing" wasn't an option?
    – Mogsdad
    Commented Jun 14, 2015 at 23:52
  • I can assure that the angular-promise and angular-scope tags are warranted to stand on their own. I guess -directive, -routing, -service, -controller, -factory, -http are also valid.
    – Bergi
    Commented Jun 15, 2015 at 1:44
  • @Bergi +1 on keeping scope and promise. But your statement lacks a rationale. For example that there are differences between q and angular-promise.
    – Knu
    Commented Jun 15, 2015 at 5:29
  • @Knu: That has been too obvious to me…
    – Bergi
    Commented Jun 15, 2015 at 14:38
  • angular-translate is a separate entity as well. It's not part of AngularJS, it's a library.
    – Cerbrus
    Commented Dec 8, 2016 at 12:10
  • 1
    same goes for [angular-ui-router], which is not absolutely not related to [angular-ui-bootstrap]. angular-ui stand for multiple libraries very used along with angular, however each of them are independant, they musn't be mixed together
    – Walfrat
    Commented Dec 8, 2016 at 12:24
18

I think you should be a bit cautious here; some of these tags are both unambiguous and fairly heavily used. If a tag isn't causing harm and is potentially useful, there's no reason to invest time and effort in getting rid of it.

For instance, . I see no evidence that this is in any way ambiguous; it means one thing and one thing only; if you have a question about this particular directive, then using the tag makes good sense.

In contrast, appears to be used on some questions that have no connection to the ng-repeat directive at all! I strongly suspect that the angularjs prefix led some number of authors to choose it accidentally. A useful activity then would be to retag these questions into those tagged and those with both and . Once done, the tag could be merged into and synonymized with .

The same should be done for many if not most of these tags. Strive to convert prefixed tags to unprefixed tags whenever possible, remove ambiguous and misused tags ruthlessly, and don't worry about the rest.

3
  • Great point wrt accidental choice of a tag starting with angular. We see that with a variety of google tags as well - I think it's a fairly common behaviour. When selecting which synonymous tags to keep then, the choice should be to start with ng-.
    – Mogsdad
    Commented Jun 16, 2015 at 11:51
  • 1
    ng-repeat is just too specific to warrant a tag IMO, not like I don't agree with you but I don't afree with your example.
    – Walfrat
    Commented Dec 8, 2016 at 12:20
  • What about the case where unprefixing a tag makes it ambiguous? It seems that people is cherry picking that without the "remove ambiguous and misused tags ruthlessly" qualifier. BTW, I prefer unambigousness over everything. If that makes a tag with two prefixes, maybe we don't need the root tag and just use the prefix.
    – Braiam
    Commented Aug 14, 2020 at 13:51
8

Notes

  • Please do not bother unless you have full editing rights, you'll be wasting the time of people in the edit review queue.
  • Start on the tags with the fewest number of questions, once we clean up the larger tags the mods can take over.
  • If a question is not on topic, keep the original tag on the question and flag it to be closed.
  • When you retag a question, also take the time to correct spelling and formatting, fix other tags, improve the title, and improve the post.

Progress report

The following tags will need to be handled under this request.

6
  • I like your choice of grammar in the area where you bolded also take the time to correcting spelling and formatting. Bypassing edit per suggestion. =) Commented Jun 16, 2015 at 2:17
  • 2
    @cchamberlain That actually wasn't intentional (but now I wish it was), I copied it from another post and missed that when rewording it. Commented Jun 16, 2015 at 2:20
  • 4
    Hmm... Of those that need to be removed, most if not all could be merged with angularjs. Get a moderator to assist. Try to focus editing on areas where a simple merge will not suffice: disambiguation, splitting (for instance, angularjs-ng-repeat -> angularjs, ng-repeat).
    – Shog9 Mod
    Commented Jun 16, 2015 at 4:18
  • This answer doesn't provide any guidance about merging tags or de-prefixing them. Commented Jun 22, 2015 at 16:14
  • FYI: meta.stackoverflow.com/questions/321050/…
    – Mogsdad
    Commented Apr 14, 2016 at 16:23
  • I just came upon this, it seems like 1 year later it still not done, should we still follow what is said here if we see a angular-xxx (among those which are not 3rd party components) tag ?
    – Walfrat
    Commented Jun 9, 2016 at 11:32
6

Not all tags that start with "angular" or "ng" are for AngularJS directives, and not all directives following that naming convention were created by Angular. Quite a few of them are actually third party Angular components, which I think deserve their own tag.

And some of the tags aren't directives, and arguably are complex or different enough to deserve their own tag

But I agree that the tags involving core Angular directives should be merged into (or made a synonym of) .

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .