I am trying to follow some recipes I have seen but I am missing something fundamental and cannot even get out of the box :(.
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.3.0-rc.5/$injector/modulerr?p0=mt_sim&p1=Erro…2Fmaster.jlbprof.com%2Fmt_sim%2Fscripts%2Fvendor%2Fangular.min.js%3A18%3A3)
I am using Linux and Apache here is the layout of my directories:
$ tree mt_sim
mt_sim
├── img
├── index.html
├── scripts
│ ├── controller
│ │ └── mt_sim.js
│ └── vendor
│ ├── angular.min.js
│ ├── angular.min.js.map
│ ├── angular-route.min.js
│ └── angular-route.min.js.map
├── styles
│ └── mt_sim.css
└── view
Here is mt_sim/index.html
<html ng-app="mt_sim">
<head>
<script src="/mt_sim/scripts/vendor/angular.min.js"></script>
<script src="/mt_sim/scripts/controller/mt_sim.js"></script>
<link href="/mt_sim/styles/mt_sim.css" rel="stylesheet" type="text/css"
</head>
<body>
<div id=outer_div ng-controller="mt_sim_contoller_1">
<div id=inner_left_div>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</div>
<div id=inner_right_div>
<ul>
<li>Coke</li>
<li>Pepsi</li>
<li>RC Cola</li>
</ul>
</div>
</div>
</body>
</html>
mt_sim.js
var mt_sim = angular.module ('mt-sim', []);
function mt_sim_controller_1 ($scope)
{
}
mt_sim.css
#outer_div {
width: 100%;
overflow: hidden;
}
#inner_left_div {
width: 15%;
float: left;
}
#inner_right_div = {
width: 83%;
}
This is so frustrating but I have no idea where to go from here.
Thanx
Bodger
I tested it and it run properly. I definitely confirmed that your problem come from source of js file not css file. Give a try and good luck
<link>tag?