This project is read-only.

Why does it called the DemoController twice ?

Oct 28, 2013 at 10:02 PM
IF you click on the Demo link and set a javascript breakpoint right after the line:

appRoot.controller('DemoController', function ($scope, $location, $resource) {

You will notice it goes there TWICE..

How can I stop this so it only calls that once ?
Oct 30, 2013 at 2:25 PM
This is a mistake. The issue here is that DemoController has been declared in route configuration and in the HTML file too.

To fix it

Goto Demo.cshtml. Change line
<div data-ng-controller="DemoController">
I would fix the package meanwhile.
Oct 30, 2013 at 4:11 PM
ok.. my work around was to do


Layout = null;


but yours is more logical I think .

Sent from Windows Mail