0

I can't get this simple Angular example to work in Firefox. Tried Ctrl+F5 but nothing. In Chrome works fine.

I set Javascript options to: Javascript -- AngularJS 1.2.1 -- No wrap-in

HTML:

<div ng-app="AppName">
  <div ng-controller="OneController">
      {{title}}
  </div>
</div>

Javascript:

var myapp = angular.module('AppName', []);

myapp.controller('OneController', function ($scope) {
    $scope.title = 'Just a text';
});
11
  • Which version of firefox? works fine here imgur.com/7bWCPbO Commented Jan 6, 2016 at 18:26
  • Try to check the console so there if there are any errors Commented Jan 6, 2016 at 18:26
  • @alex88 it says ReferenceError: angular is not defined. FF 43.0.1 Commented Jan 6, 2016 at 18:29
  • Does it throws any error about fetching the angular js file? Check also the network connections. Tell me also if this works jsfiddle.net/afyyd6ob/3 Commented Jan 6, 2016 at 18:35
  • jsfiddle.net/afyyd6ob/3 doesn't work. I tried to open fiddles created by other users and they work. Strange. Commented Jan 6, 2016 at 18:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.