I am new to AngularJS.
I want to include reusable html in the main html. When I try to redo this example, it fails. Currently I have myUsers_List.htm
, myUsers_Form.htm
, myUsers.js
, and main.html
all in one folder.
The code in main.html
is as follow:
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<body ng-app="myApp" ng-controller="userCtrl">
<div class="container">
<div ng-include="'myUsers_List.htm'"></div>
<div ng-include="'myUsers_Form.htm'"></div>
</div>
<script src= "myUsers.js"></script>
</body>
</html>
I can see the content in myUsers_List.htm
and myUsers_Form.htm
when I open main.html
in Dreamweaver, but when I open it in browser, it's blank.
Could someone help me out the problem about that? Is is about the path of files or some other issue? Thanks.