Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have a couple issues, first in jsfiddle you don't need the body tags plus you have multiple body tags. Also your fiddle has two ng-apps, the routes are defined incorrectly (should be /new for instance), invalid ng-view closing tag, there should only be one. You should include the javascript with No wrap in head and lastly it is <code>html5Mode</code> with a capital <code>M</code> on the mode and none of your partials exist at their urls nor are they defined as local scripts.</p> <p>I would suggest you use plunkr as it allows you to add other local files, ie your partials which don't exist in the fiddle.</p> <p>I've cleaned up all of the issues on this plunkr: <a href="http://plnkr.co/edit/A23Fxn9Ji02TGZ0jouZR?p=preview">http://plnkr.co/edit/A23Fxn9Ji02TGZ0jouZR?p=preview</a></p> <pre><code>angular.module('testApp', []). config(function ($routeProvider, $locationProvider) { $locationProvider.html5Mode(true); // case is important $routeProvider. when("/", { templateUrl: "list.html" }). when("/new", { // make sure and use absolute link to route templateUrl: "edit.html" }) }) function testCtrl($scope) { $scope.persons = [{ name: "X" }, { name: "Y" }, { name: "Z" }] } </code></pre> <p>and the html:</p> <pre><code>&lt;body ng-controller="testCtrl" &gt; &lt;div class="main-nav"&gt; &lt;a href="new"&gt;Add Me&lt;/a&gt; &lt;/div&gt;INDEX &lt;div &gt; &lt;div ng-view&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>Please review the documentation and tutorials to learn the basics on setting up a project. <a href="http://docs.angularjs.org/guide/bootstrap">http://docs.angularjs.org/guide/bootstrap</a> </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload