javascript - Changes in html template do not reflect -
i trying add buttons geonetwork 3 mapviewer. unfortunately i'm new angularjs, gn3 written in. i've done editing html-template 'gnmainviewer' directive using.
viewerdirectve.js:
module.directive('gnmainviewer', [ 'gnmap', function(gnmap) { return { restrict: 'a', replace: true, scope: true, templateurl: '../../catalog/components/viewer/' + 'partials/mainviewer.html', [...] }]);
in template can find buttons shown in mapview.
mainviewer.html:
<div class="wrapper" data-ng-controller="gnviewercontroller"> <div data-gn-alert-manager=""></div> <div id="map" ngeo-map="map" class="map"></div> <div gn-gfi="" map="map"></div> <div gn-localisation-input map="map"></div> <!--top right buttons - tools--> <div class="tools tools-right" gi-btn-group gnv-close-panel data-ng-controller="toolscontroller"> <button class="btn btn-default" ng-model="activetools.addlayers" type="submit" rel="#addlayers" gi-btn gnv-tools-btn> <span class="fa fa-plus"></span> <span role="tooltip" data-translate="">addlayers</span> </button> <button class="btn btn-default" ng-model="activetools.layers" type="submit" rel="#layers" gi-btn gnv-tools-btn> <span class="fa fa-tasks"></span> <span role="tooltip" data-translate="">layers</span> </button> [...] </div> </div>
so i've added button let's say:
<button class="btn btn-default" ng-model="" type="submit" rel="#" gi-btn gnv-tools-btn> <span class="fa fa-beer"></span> <span role="tooltip">newbutton</span> </button>
to template.
then i've saved changed , refreshed mapview-page on server. new button not displayed. also, changing comment "top right buttons" else not make changes displayed mapview-page. restarting server won't change anything.
could explain me why angularjs reacts this? ideas?
turned out had run page in debug mode e.g. http://localhost:8080/geonetwork/srv/ger/catalog.search?debug#/map force load angularjs files seperately , without cache.
Comments
Post a Comment