jquery - Can Angular.js be used in "classic asp" websites? -


i've have 2 file same. classic .asp file, , viewsource of .asp saved html file. in both include jquery framework, angular.js framework, , project specific js. html , asp both contain

<html ng-app="willisprecastprojects">  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>  <script src="js/angular.min.js"></script> <script src="js/precast.js"></script>  <div ng-controller="maincontroller">     <div ng-repeat="data in projectdata">         <h3>{{data.name}}</h3>         <p>{{data.address}}</p>     </div> </div> 

precast.js:

var app = angular.module('willisprecastprojects', []);  // load json app.controller('maincontroller', function($scope, $http){ $http.get('js/generic.json').success(function(project_data){     $scope.projectdata = project_data; }); }) 

generic.json:

[ {   "longitude": 19.069341,   "latitude": -155.566242,   "heading": 120,   "name":"hawaii",   "address":"naalehu, hi (usa)",   "pitch": 10,   "fov": 90 }, {   "longitude": 51.876072,   "latitude": 0.55454,   "heading": 90,   "name": "braintree",   "address": "station approach, braintree cm7 3ql (uk)",   "pitch": 10,   "fov": 90 }, {   "longitude": 51.794423,   "latitude": 0.632222,   "heading": 262.62,   "name": "witham, chipping hill",   "address": "windsor close, hatfield road, witham, cm8 1gh (uk)",   "pitch": 10,   "fov": 90 } ] 

the angular works in html, not work in classic asp. there reason why happens?

note: i'm viewing html files through apache localhost via xampp. i'm viewing classic asp in debug mode via iis in visual studio 2013.


1 @anthony - precisely. no errors thrown. angular not work in vs build of classic asp site.

2 @john - js pathing fine. clicking on link each js file in each view source loads of js files load.

3 @brian, 4 @john - i'm thinking might way visual studio builds. i'm not using iis natively. i'm using visual studio's builtin dev server. find interesting support classic asp in can build classic asp project/solution page works. it's angular stuff doesn't work. perhaps vs's builtin dev server doing angular tag attributes. if case how people cs , asp.net programmers build angular apps in visual studio 2013?

i appreciate advice , suggestions. apologies cannot supply actual source code in entirety. other suggestions appreciated.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -