angularjs-eclipse icon indicating copy to clipboard operation
angularjs-eclipse copied to clipboard

Ctrl+click hyperlink navigation from html element to Angular directive definition in JavaScript file

Open dgolovin opened this issue 11 years ago • 2 comments

Now for default ionic project there is hyperlink on ion-nav-bar, but nothing happens when it is clicked.

For ionic html below:

<ion-nav-bar class="bar-stable nav-title-slide-ios7">
</ion-nav-bar>

would be good to navigate to directive definition in ionic-angular.js

...
IonicModule
.directive('ionNavBar', [
  '$ionicViewService',
  '$rootScope',
  '$animate',
  '$compile',
  '$ionicNavBarConfig',
function($ionicViewService, $rootScope, $animate, $compile, $ionicNavBarConfig) {
...
}
...

Vice versa would be good to be able to see all reference to ionNavBar directive in html files as ion-nav-bar element.

dgolovin avatar Oct 21 '14 00:10 dgolovin

would be good to navigate to directive definition in ionic-angular.js

I think the problem is that angular tern plugin doesn't support module dependencies. The html is linked with starter module :

angular.module('starter', ['ionic', 'starter.controllers', 'starter.services'])

when hyperlink is done for ion-nav-bar html element, it search directive from starter module and not for ionic, etc module

I will try to fix that.

Vice versa would be good to be able to see all reference to ionNavBar directive in html files as ion-nav-bar element.

I suppose you wish to have Ctrl+Shift+G inside JS editor to retrieve in the search view the whole HTML files which uses ionNavBar. If it that, I had created https://github.com/angelozerr/tern.java/issues/79

Perhaps you could give me an answer?

angelozerr avatar Oct 26 '14 14:10 angelozerr

You are correct, that what I was thinking about, but you seem to have it in plans long before that.

dgolovin avatar Dec 23 '14 05:12 dgolovin