I
I
Ivan Damaskin2015-07-30 00:50:35
JavaScript
Ivan Damaskin, 2015-07-30 00:50:35

How to register the provider correctly so that the coordinates change and the redirect does not work?

My url changes when I move the map
localhost.com /#13/46.8483/29.5999
13 this is the zoom
, then the coordinates go
here is my provider

$routeProvide.
when('/', {
templateUrl: 'pages/home.html',
controller: 'HomeCtrl'
}).
when('/admin', {
templateUrl: 'pages/admin.html',
controller: 'AdminCtrl'
}).
otherwise({
redirectTo: '/'});

how to correctly register the provider so that the coordinates change and the redirect does not work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2015-07-30
@Joannes

Use https://github.com/tombatossals/angular-leaflet-di...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question