Archive for December, 2014

AngularJS $ and OPTIONS verbs with C# MVC apps

If you have an angular service that posts data, the $http object will do a pre-flight OPTIONS request to the URL to make sure it can post. 1 $‘/someUrl’, {msg:’hello word!’}). 2 success(function(data, status, headers, config) { 3 console.log(data); 4 }). 5 error(function(data, status, headers, config) { 6 console.log(‘error’); 7 }); On the flip side, […]

Read more

An angularJs concept about ionic

Since I forget stuff… It’s worth noting that when a template is rendered, the ng tags are processed at that time. For example, if you want to use ng-model inside of an ng-repeat: This does not work: <input type=“text” ng-model=“settingObject.{{valueName}}”> But this does: <input type="text" ng-model="settingObject[valueName]"> This is an important concept because how certain element […]

Read more