I have a button on my page with an id="viewQuestions" on a page:      <body ng-keydown="key($event);">   My code is checking for key hits like this:      $scope.key = function ($event) {         $scope.$broadcast('key',...
Edit: It seems that this could be related to Chrome v43, I downgraded to v42 and everything works fine.  Edit: I've submitted an issue on the Angular's Github repo.  It seems that the error gets thrown by  return logFn.apply(console, args); l...
If one changes a scope property first, and then broadcasts an event second, will the corresponding watcher callback and event listeners callback always be executed in that same order? For example:  $scope.foo = 3; $scope.$broadcast('bar');...
I have a mean-stack website. I want to use ExecuteFunction to bind a button to launch this website in a Dialog box:  function doSomethingAndShowDialog(event) {     clickEvent = event;     Office.context.ui.displayDialogAsync("https://localhost:30...
I'm trying to create a directive which changes ng-model from a parent html tag but it is not working:  var app = angular.module('myApp',[]); app.controller('ParentController',['$scope', function($scope) {   $scope.anyVar =...
AngularJS promises seem to be tied to a digest cycle, as in, the success/error callbacks are not called until a digest cycle is run. This means that anything that uses promises, such as $http or manually created promises, also need to trigger a diges...
I have next code (events is array):  <tr ng-repeat="event in events">     <td>         <span time-ago="{{event.TimestampSec}}"></span>     </td>     <td>         {{prepareAlertValue(event.AlertValue...
I have a web app that must be viewed with the landscape orientation.  To do this, I have created a function that checks the innerWidth and innderHeight, and if the width is greater than the height then happy days.  This works perfectly for when I loa...
Does $qinclude an implicit digest/apply upon resolution/rejection of the promise chain?  I have migrated a piece of code from $q to use q and a digest now appears to be missing resulting in different behavior. Why might this be?...
This is a bit of a theoretical question, but important in my understanding how the Digest Loop in Angular 1.x works.  I understand why the Digest loop would usually run twice. Once for detecting changes and another time to make sure no watched expres...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.