Stuck in near me 1 step 5

I can’t find out why i’m stuck in near me part one:

Code is as follows:


<!doctype html>
    <link href="" rel="stylesheet">
    <link href="css/main.css" rel="stylesheet" />
    <link href="css/leaflet.css" rel="stylesheet" />
    <script src="js/vendor/angular.min.js"></script>
 	<script src="js/vendor/leaflet.js"></script>

  <body ng-app="NearMeApp">
    <div class="header">
      <div class="container-fluid">
        <h1 class="pull-left">NearMe</h1>

    <div class="main" ng-controller="MainController">
      <div class="container-fluid" id="map-canvas">

    <!-- Modules -->
    <script src="js/app.js"></script>

    <!-- Controllers -->
    <script src="js/controllers/MainController.js"></script>
    <!-- Directives -->
    <script src="js/vendor/angular-leaflet-directive.min.js"></script>

    <!-- Services -->


var app = angular.module('NearMeApp', ['leaflet-directive']);


app.controller('MainController', ['$scope', function($scope){

It has to be a typo or something but I can’t find it…


for me it worked with the <script src="js/vendor/angular-leaflet-directive.min.js"></script> in the head and not in the body

1 Like

Your code is Ok. I swapped your code into my working version and it works.

Maybe one of your folders is named incorrectly or there is a missing file on your end. Here is what my folder structure looks like.