question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support AngularJS detection

See original GitHub issue

The project auto detection feature is currently only detecting Angular 2 project. We should enhance the feature to properly detect Angular 1 project and enable only Angular 1 specific Angular icons.

According to https://scotch.io/tutorials/angularjs-best-practices-directory-structure, smart_components, pipe shouldn’t be associated and component should be replaced by controller. Also routing should be associated with routes too.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
robertohuertasmcommented, Feb 3, 2017

@Meowbeast, certainly we have to discuss about all this. @JimiC and I have a (virtual) meeting pending to discuss about this.

To be honest, I’m not quite comfortable either with the current behavior and I have it disabled because I was tired of being asked once and again. That made me think about how we should approach this. No doubt it is a valuable add-in to the extension but there’s no doubt, at least from my user experience, that it needs to be rethought in order to be less intrusive.

Of course, in our discharge, I have to say that we’re dealing with some limitations that vscode poses to us but, anyway, it’s clear to me that we need to change some things on this matter.

0reactions
JimiCcommented, Apr 22, 2017

I believe it’s time to start looking into this issue again. I would really appreciate any help in order to compile a list of ways to detect an AngularJS project. I’ll start a list and it will get updated as we go.

  • In index.htm* look for an ng-app attribute in html element.
  • In index.htm* look for a script element with reference to any of angular.js, angular-[version].js, angular.min.js, angular-[version].min.js.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Developer Guide: Unit Testing - AngularJS: API
Unit Testing · Karma is a JavaScript command line tool that can be used to spawn a web server which loads your application's...
Read more >
A Complete Guide To AngularJS Testing | LambdaTest
A detailed guide to AngularJS testing that covers what Angular is, the difference between Angular and AngularJS, top features, benefits, ...
Read more >
How do I check for browser support for AngularJS?
You can also use Modernizr which has feature detection. In terms of other browsers you should be fine, since they update themselves regularly ......
Read more >
Change detection in Angular versus AngularJS
Two-way data binding is supported which means that single pass of change detection is not enough. AngularJS runs digest cycles until the model ......
Read more >
Angular Change Detection - How Does It Really Work?
The Angular change detection mechanism is much more transparent and easier to reason about than its equivalent in AngularJs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found