Reputation: 230
I have the angular.min.js library installed on ubuntu 14.04 under /opt/mean/public/lib/angular/angular.min.js, and in a view made in accordance with a tutorial from lynda I have the following view:
<!doctype html>
<html lang="en" ng-app>
<head>
<meta charset="UTF-8">
<title>Angular Demo</title>
<script src="/opt/mean/public/lib/angular/angular.min.js"></script>
</head>
<body>
<input type="text" ng-model="name">
<h2>Welcome {{name}}</h2>
</body>
</html>
The contents of the h2 tag should be dynamically updating as text is entered but it is not. Furthermore on the console I get a 404 error for the angular.min.js file. The MEAN stack is the premade one found on digitalocean, if that matters.
Upvotes: 0
Views: 148
Reputation: 2053
try using the path
/lib/angular/angular.min.js
instead of
/opt/mean/public/lib/angular/angular.min.js
Upvotes: 1