Questions tagged [watch]

Watch refers to observing the status of variables, files or directories for some or all possible actions such as additions, deletions or modifications.

Watch refers to observing the status of variables, files or directories for some or all possible actions such as additions, deletions or modifications.

1673 questions
0
votes
3 answers

__defineSetter__ on innerHTML stops it from rendering

i'm trying to create a watch method for HTML elements, using __define[GS]etter__ when a property is changed. It reacts just fine when i set the value, but if the property listened to, is innerHTML, it somehow fails to render the given string. So…
Tokimon
  • 4,072
  • 1
  • 20
  • 26
0
votes
1 answer

Proper using of scope watch for many variables

Which solution is best. Set three watches in controller to each data and accordingly set differrent method or set one watch for all three variables and then check which changed and run specified method. In allegory to event handling, best is to…
changtung
  • 1,614
  • 15
  • 19
0
votes
2 answers

vb.net how to check for changes in folder upon application start?

while the application is running i'm using FileSystemWatcher to monitor the folder. But what if there are changes to the folder when the application is not running, how can I check for these changes when the application starts. (similar to how…
mazrabul
  • 295
  • 1
  • 5
  • 17
0
votes
1 answer

Retrieving heart rate data from Android watch face service

Does anyone have links to sample code that shows how to set up heart sensor data retrieval directly from CanvasWatchFaceService or CanvasWatchFaceService.Engine ? (Most of the code I've seen thus far perform sensor data retrieval from a wearable's…
Oke Uwechue
  • 314
  • 4
  • 14
0
votes
1 answer

Injecting a $scope.property by ref into a factory instance

I need a Factory object that can be applied with a $scope.property to get a result. I also need to know if either the modifier in the factory instance, or the $scope.property changes to update the result. How I am seeing this pattern might be wrong…
Ingó Vals
  • 4,788
  • 14
  • 65
  • 113
0
votes
1 answer

audiorecord android wear values 0

I am trying to get the volume from my Android Wear watch : MOTO 360. But, I only get 0 PCM values from Audiorecord.read..... I run the record process in a separate thread. Below is an extract of my code, do you have any idea what I am doing wrong…
bisonfute
  • 91
  • 1
  • 9
0
votes
1 answer

Storing original values for IIFEs in watch function (reset filters) in Angular

I have a bunch of filters and I seek to write a function so that on ng-click all filters are reset to the original values. However, all my filter For example,I have a filter for number of stops which all works fine.…
Dribel
  • 465
  • 1
  • 10
  • 24
0
votes
1 answer

How to track behavior of ngModel array item using .directive

Hi everyone I'm use angularjs not so long time ago and now I have one issue related with this framework that i can't to solve. So the problem in next: I have few input fields that generate via ng-repeat:
btrpro
  • 7
  • 1
  • 2
0
votes
2 answers

$scope.$watch not working properly

I've got a sign in form which requires a set of errors. Thing is, this sign in form slides in from the left via a custom directive. When I want to slide it out of sight I need the current error to disappear. I've set a $watch function to watch for…
Chrillewoodz
  • 27,055
  • 21
  • 92
  • 175
0
votes
1 answer

Directive Angularjs, $watch and HTML Element

I have a question. I coded a HTML page with an angularjs directive this is my code I'm trying to use a…
user3449953
  • 43
  • 1
  • 8
0
votes
1 answer

gdb watch point does not work on gdb load command

I set a watch point on memory location in gdb and load a application through gdb load command. watch point does not hit during load command although memory location is being changed during loading of application. (gdb) watch *0x1c Hardware…
Equation Solver
  • 545
  • 7
  • 18
0
votes
1 answer

How do create a shell script to automate running watchcompile and browser-sync

I am trying to do something like this to automate watchcompile and browser-sync but it's not working. #!/bin/sh nvm use 0.10 watchcompile browser-sync start --server --files "index.html, css/*.css, js/*.js" This is to be run in the project…
0
votes
0 answers

Dynamicly add values to watch for in angularJS

Lets say that I have a form with one dropdown with options foo, bar and 3 input fields: input1, input2 and input3. All formfields ar binded to a $scope object. I would like to make a setup where if the user in the dropdown selects: foo, then…
Martin
  • 1
0
votes
1 answer

$scope variable being undefined despite being set inside a $watch function

I'm trying to insert some things into my Firebase database using a user's uid but it comes out undefined for some reason. Take a look at the code below: The main controller that sets the user's data information (authData) when the page…
Chrillewoodz
  • 27,055
  • 21
  • 92
  • 175
0
votes
1 answer

AngularJS - Event after $watch function is complete

Is there anyway to listen for an event after the $watch function gets completed and the html is rendered? scope.$watch('treeData', on_treeData_change, true); on_treeData_change = function() { var add_branch_to_list, root_branch, _i, _len,…
user1578872
  • 7,808
  • 29
  • 108
  • 206
1 2 3
99
100