Tagged Questions
0
votes
1answer
69 views
Unable to figure out how to modify angular directive
What i'm trying to do is on click of a button i'm trying to give the user the option to select one of the 2 images displayed and make the selected image draggable.
My code shows 2 images and 1 is ...
0
votes
1answer
124 views
$dirty flag setting to true when value entered in text box but not vice versa
I have a form in which
myForm.$dirty
gets set to true when i enter a value in text box
<input name="input" ng-model="myModel.text">
But the flag isn't setting to false when i delete all ...
0
votes
1answer
357 views
Detect Unsaved changes and alert user using angularjs
Below is the code so far
<!doctype html>
<html ng-app>
<head>
<script src="http://code.angularjs.org/1.1.2/angular.min.js"></script>
<script ...
0
votes
1answer
473 views
Detect unsaved data using angularjs
i'm a newbie to angularjs, so this might be trivial.
Are there any inbuilt angular js directive to detect unsaved data in a form.
If not then how to go about writing one.
Any pointers would be ...
0
votes
1answer
2k views
Error: $digest already in progress
I'm getting this error while trying to call
function MyCtrl1($scope, $location, $rootScope) {
$scope.$on('$locationChangeStart', function (event, next, current) {
...
1
vote
1answer
342 views
TypeError: Cannot call method '$on' of undefined
Here is my controller.js code in angular app
function MyCtrl1($scope) {
$scope.$on('$locationChangeStart', function (event, next, current) {
event.preventDefault();
var answer = ...