angularjs-eclipse
angularjs-eclipse copied to clipboard
Ctrl+click hyperlink navigation from html element to Angular directive definition in JavaScript file
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.
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?
You are correct, that what I was thinking about, but you seem to have it in plans long before that.