AngularJS发现谁更改了$ watch观看的对象

时间:2015-05-07 15:28:45

标签: hover carousel callstack angular-bootstrap angularjs-watch

我正在使用Angular-Bootstrap Carousel指令并在其上进行一些更改。 幻灯片的幻灯片有 Private Sub Format_Parse_Replace() Dim i As Double Dim ws As Worksheet Set ws = ThisWorkbook.ActiveSheet Dim NomValue As String Dim myarray As String Dim rLastCell As Range Set rLastCell = ws.Cells.Find(What:="*", After:=ws.Cells(1, 1), LookIn:=xlFormulas, LookAt:= _ xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlPrevious, MatchCase:=False) 'MsgBox ("The last used column is: " & rLastCell.Column) Rows("4:6").EntireRow.Insert myarray = Array("Measurement", "", "Nominal", "Low", "High", "", "") Range("A2:A" & UBound(myarray) + 1) = _ WorksheetFunction.Transpose(myarray) For i = rLastCell.Column To 2 Step -1 'If Cells(1, i) = "Logbook" Then 'Columns(i).Delete 'End If 'Set Col = ColLett(rLastCell.Column) NomValue = ws.Cells(3, i).Value Columns(i).Cells(4).NumberFormat = "@" Columns(i).Cells(5).NumberFormat = "@" Columns(i).Cells(6).NumberFormat = "@" Columns(i).Cells(4) = SplitString(NomValue, ",", 4) Columns(i).Cells(5) = SplitString(NomValue, ",", 5) Columns(i).Cells(6) = SplitString(NomValue, ",", 6) Next i Rows(3).Delete End Sub

我试图通过悬停右/左控件而不是点击来转到下一张/上一张幻灯片。 并通过更改ng-repeat状态(之前为false - new to true)

来实现此目的

无论如何,几轮之后,我的所有物体都是object.active,而旋转木马什么都没显示。 在对每个对象调试数组和active=false之后,我发现当它出错时,是因为当我不期望它时,指令会以某种方式更改$watch

长话短说我可以以某种方式获取我正在使用active=false观看的范围内的对象的调用堆栈吗?

我的监视代码例如如下:

$watch

0 个答案:

没有答案