1

I have this code :

var app = angular.module("malocFeApp",['leaflet-directive']);
app.controller('MainCtrl',[ "$scope", function($scope) {  }]);

It prevent the template to show up.

When I remove the requires the template show up:

var app = angular.module("malocFeApp");
app.controller('MainCtrl',[ "$scope", function($scope) {  }]);

Why did the requires prevent the module to work correctly?

Maloc
  • 43
  • 8

1 Answers1

0
  1. Ensure you have the angular leaflet.js script referenced in your HTML
  2. Make sure it is referenced after angular.js?
  3. Check your JavaScript console output (F12 in your browser) for errors regarding dependency injection errors
Peter Morris
  • 20,174
  • 9
  • 81
  • 146