Tuesday, 20 August 2013

You must have an argument in the function passed to `to`

You must have an argument in the function passed to `to`

i am trying to get started with ember framework . i write a code
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Ember.js • TodoMVC</title>
<link rel="stylesheet" href="style.css">
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="js/libs/handlebars.js"></script>
<script src="js/libs/ember-latest.min.js"></script>
<script src="js/libs/ember-data-latest.min.js"></script>
<script src="js/application.js"></script>
<script src="js/router.js"></script>
</head>
<body>
<section id="todoapp">
<header id="header">
<h1>todos</h1>
<input type="text" id="new-todo" placeholder="What needs to be
done?" />
</header>
<section id="main">
<ul id="todo-list">
<li class="completed">
<input type="checkbox" class="toggle">
<label>Learn Ember.js</label><button class="destroy"></button>
</li>
<li>
<input type="checkbox" class="toggle">
<label>...</label><button class="destroy"></button>
</li>
<li>
<input type="checkbox" class="toggle">
<label>Profit!</label><button class="destroy"></button>
</li>
</ul>
<input type="checkbox" id="toggle-all">
</section>
<footer id="footer">
<span id="todo-count">
<strong>2</strong> todos left
</span>
<ul id="filters">
<li>
<a href="all" class="selected">All</a>
</li>
<li>
<a href="active">Active</a>
</li>
<li>
<a href="completed">Completed</a>
</li>
</ul>
<button id="clear-completed">
Clear completed (1)
</button>
</footer>
</section>
<footer id="info">
<p>Double-click to edit a todo</p>
</footer>
</body>
</html>
when i run it its giving me error in developer console
Uncaught TypeError: Object function
(){r||a.proto(),i(this,s,g),i(this,"_super",g);var
o=u(this);if(o.proto=this,e){var
c=e;e=null,this.reopen.apply(this,c)}if(t){var h=t;t=null;for(var
m=this.concatenatedProperties,f=0,d=h.length;d>f;f++){var b=h[f];for(var y
in b)if(b.hasOwnProperty(y)){var
w=b[y],_=Ember.IS_BINDING;if(_.test(y)){var
C=o.bindings;C?o.hasOwnProperty("bindings")||(C=o.bindings=n(o.bindings)):C=o.bindings={},C[y]=w}var
O=o.descs[y];if(m&&v(m,y)>=0){var S=this[y];w=S?"function"==typeof
S.concat?S.concat(w):Ember.makeArray(S).concat(w):Ember.makeArray(w)}O?O.set(this,y,w):typeof
this.setUnknownProperty!="function"||y in
this?E?Ember.defineProperty(this,y,null,w):this[y]=w:this.setUnknownProperty(y,w)}}}p(this,o),delete
o.proto,l(this),this.init.apply(this,arguments)} has no method
'registerInjection' ember-data-latest.min.js:11
Uncaught Error: You must have an argument in the function passed to `to`
ember-latest.min.js:19
Uncaught Error: No route matched the URL '' ember-latest.min.js:19
can any one please help why i am facing this error ??

No comments:

Post a Comment