0

I have made a simple program that displays a toolbar using the AngularJS Material Design framework that works on Google Chrome and Opera,however does not work in Firefox, as in, the toolbar is not displayed,only the text inside it is.The code for the html is as follows:

<!doctype html>
<html lang="en" ng-app="toolbarTest">
<head>
    <meta charset="utf-8">
    <title>SideNav Test</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
    <link rel="stylesheet" href="C:\angular\angular-phonecat\app\bower_components\angular-material\angular-material.css">
    <link rel="stylesheet" href="C:\angular\angular-phonecat\app\bower_components\angular-material\themes\indigo-theme.css">

</head>
<body>
    <script src="C:\angular\angular-phonecat\app\bower_components\angular\angular.js"></script>
    <script src="C:\angular\angular-phonecat\app\bower_components\angular-aria\angular-aria.js"></script>
    <script src="C:\angular\angular-phonecat\app\bower_components\angular-animate\angular-animate.js"></script>
    <script src="C:\angular\angular-phonecat\app\bower_components\hammerjs\hammer.js"></script>
    <script src="C:\angular\angular-phonecat\app\bower_components\angular-material\angular-material.js"></script>
    <script >
        angular.module('toolbarTest', ['ngMaterial'])

        .controller('AppCtrl', function ($scope) {

});
    </script>

    <div ng-controller="AppCtrl">

      <md-content flex class="md-padding">

           <md-toolbar md-theme="indigo">
              <h2 class="md-toolbar-tools">
                <span>Toolbar: blue-theme</span>
              </h2>
            </md-toolbar>
      </md-content>

    </div>
</body>
</html>

When I go to console in Firefox, I get the message "ReferenceError: angular is not defined". Thank you,any help is appreciated.

1
  • 1
    you have a filesystem css and js file references, that could be a case. Commented Nov 7, 2014 at 12:19

1 Answer 1

1

update: it wasn't working because Firefox apparently needs the syntax "file:///" before absolute paths.

Sign up to request clarification or add additional context in comments.

Comments

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.