javascript - Cannot get started with Angular.js -


I'm trying to follow some recipes that I have seen, but I'm missing something fundamental and this Can not also exit the box :(.

  Uncheck error: [$ Injector: Mondler] http://errors.angularjs.org/1.3.0-rc.5/$injector / Modulerr? P0 = mt_sim & p1 = Erro ?? | 2Fmt_sim% 2Fscripts% 2Fvendor% 2Fangular.min.js% 3A18% 3A3)   

I am using Linux and Apache here The layout of my directories is:

  $ tree mt_sim mt_sim ???? Line Line Line Img a ???? One ???? One ???? Index.html ?????? Line Scripts A "A" ???? Line Controller A "A" A "A" ???? mt_sim.js? a ???? One ???? Line Seller a ???? One ???? Line Line Angular.min.js A ???? One ???? One ???? Line Angular.min.js.map one ???? One ???? One ???? Line Angular-way.man.jes a "one" ???? One ???? Angular-route.min.js.map A ???? One ???? Line Styles A ?? One ???? One ???? Line mt_sim.css A "????" ??? See   

here mt_sim / index.html

  & lt; html ng-app = "mt_sim" & gt; & Lt; Top & gt; & Lt; Script src = "/ mt_sim / scripts / vendor / angular.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "/ mt_sim / scripts / controller / mt_sim.js" & gt; & Lt; / Script & gt; & Lt; Link href = "/ mt_sim / styles / mt_sim.css" rel = "stylesheet" type = "text / css" & lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = outer_div ng-controller = "mt_sim_contoller_1" & gt; & Lt; Div id = inner_left_div> & Lt; Ul & gt; & Lt; Li & gt; Coffee and lt; / Li & gt; & Lt; Li & gt; Tea & lt; / Li & gt; & Lt; Li & gt; Milk & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; div id = inner_right_div & gt; & Lt; Ul & gt; & Lt; Li & gt; Coke & lt; / Li & gt; & Lt; Li & gt; Pepsi & lt; / Li & gt; & Lt; Li & gt; RC Cola & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;   

mt_sim.js

  var mt_sim = angular.module ('mt-sim', []); Function mt_sim_controller_1 ($ scope) {}   

mt_sim.css

  #outer_div {width: 100%; Hidden flurry; } #inner_left_div {width: 15%; Swim left; } #inner_right_div = {width: 83%; }   

It is very disappointing but I do not know where to go from here.

Thanax

boder

  var mt_sim = Angular.module ('mt-sim', []); The function should be mt_sim_controller_1 ($ scope) {}   

  var mt_sim = angular.module ('mt-sim', []); Mt_sim.controller ("mt_sim_controller_1", function ($ scope) {$ scope.whatever = "something";});    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -