Skip to content Skip to sidebar Skip to footer

Angular Openstreetmap With $routeprovider

Here is the single page app. There is what I need https://github.com/tombatossals/angular-leaflet-directive/blob/master/examples/simple-example.html but I want add menu...

Solution 1:

for routing to work you need to be sure you are injecting ngRoute:

<script type="text/javascript" src="angular-route.min.js"></script>

var App = angular.module('App', ['leaflet-directive', 'ngRoute']);

I would recommend getting routing working before you start adding other directives.

Post a Comment for "Angular Openstreetmap With $routeprovider"