Commit 2e2ee2b3 authored by Pascal Hartig's avatar Pascal Hartig

AngularJS: Remove unnecessary ng-controller

Fix #898

The router already takes care of initializing the controller, doing it again in
the markup causes the initialization to happen twice. Thanks @ruffle1986 for
reporting.
parent 80e0caa2
......@@ -10,7 +10,7 @@
<ng-view />
<script type="text/ng-template" id="todomvc-index.html">
<section id="todoapp" ng-controller="TodoCtrl">
<section id="todoapp">
<header id="header">
<h1>todos</h1>
<form id="todo-form" ng-submit="addTodo()">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment