angular2-changedetection Questions
2
Solved
I am working on an Angular 4 app, but I am having a problem inasmuch as I am having to call this.changeDetectorRef.detectChanges(); to update the view when the model changes. For example, I h...
Belshazzar asked 21/7, 2017 at 11:36
1
Solved
I have a class (interface) in my angular 4 app which has a lot of fields.
Note that the instance of this class/interface is immutable (i.e. the members will NEVER be changed).
E.g.
public interfa...
Isotonic asked 17/7, 2017 at 13:23
3
Solved
I have a simple alert component which I'm creating dynamically in the view. Since it's created dynamically I've set an option to automatically display the alert after it has been initialised.
Alth...
Displace asked 10/7, 2017 at 12:31
2
Solved
Our team (not only my computer) has a wierd rendering issue for Angular 2, that only happens in Chrome.
Namely, when navigating the app or refreshing in mid app, many of the items in DOM are invis...
Barrens asked 13/3, 2017 at 15:1
1
I was going through this article and was confused about how the change detection action works. https://vsavkin.com/change-detection-in-angular-2-4f216b855d4c
The concept:
Angular says it does not d...
Sapro asked 1/6, 2017 at 3:49
0
Are there any differences in Angular change detection between iOS mobile browsers (Safari, Chrome) and desktop/android Chrome?
I have just served my Angular application using http-server npm packa...
Glamorous asked 19/4, 2017 at 14:15
1
Solved
I have an Angular 2 Component with many children.
Because of performance issues, I wanted to check how often the ChangeDetection checks my child-components. So I logged the ngAfterViewChecked-callb...
Conquer asked 12/4, 2017 at 8:39
2
Say I have a function noificationHandler() in my service.ts that is outside of angular's context.
noificationHandler() is invoked by a third party and noificationHandler() basically consumes an arr...
Cloudlet asked 23/3, 2017 at 9:24
2
Solved
Youtube video demonstrating the problem
Github repository for the demo app
I have a very simple app with an app component, a child component (account), alert service that handles a message dialog...
Tungus asked 19/2, 2017 at 3:48
2
Solved
I have google maps which triggers 100+ times per second change detection. how to disable change detection for this.
Click here for map preview
it will be even worse when using mouseover event.
n...
Lounging asked 17/8, 2016 at 11:22
1
Solved
I have an issue in Angular2 (final) around change detection and data flow between components. I have worked around it but it seems a little hacky to me
so was wondering if there is a better way of ...
Portend asked 23/1, 2017 at 13:24
3
Solved
I have 2 files. app.ts and Child.ts
I am sending a variable from app to child and I want to detect any change in the variable and show data accordingly. I am not able to detect changes in a vari...
Byway asked 19/1, 2017 at 16:14
1
Solved
I have an Electron app using Angular 2. The app works fine until a load data from a local JSON file using ipcRenderer. Then buttons which act on data in a service no longer trigger change detection...
Kalb asked 21/12, 2016 at 4:4
2
Solved
Getting a change detection error
Expression has changed after it was checked. Previous value: 'true'. Current value: 'false'
so I want to manually run another round of change detection. Found...
Adler asked 18/11, 2016 at 17:2
1
Solved
I'm trying to fully understand change detection with Angular2 final.
This include:
Dealing with change detection strategies
Attaching and detaching change detector from a component.
I thought ...
Refresher asked 30/10, 2016 at 17:56
1
Solved
This is quite confusing to me. I might not have a solid understanding of how subscription works.
Angular 2 finalized version
Goal: Hide/Show navigation menu based on roles
Approach: I use Faceboo...
Stylus asked 7/10, 2016 at 22:55
3
Solved
I'm having major trouble trying to perform some logic inside a (click) event callback function in Angular 2 without triggering change detection.
Why I don't want to trigger change detection
The c...
Pander asked 27/9, 2016 at 16:28
2
Solved
In my app I want to set manual change detection. For this I set the ChangeDetectionStrategry to OnPush and whenever a change occurs in a component I manually run change detection using detectChange...
Louralourdes asked 25/9, 2016 at 11:41
1
Solved
I'm not sure why the change detection wouldn't work here. I've tried a few things, including a setTimeout. I'm using RC5. Basically I want to change the content based off of a parameter in my URL. ...
Saying asked 2/9, 2016 at 7:13
2
Consider this plunker
import {Component, OnInit, Input, OnChanges, DoCheck, ChangeDetectionStrategy, EventEmitter} from 'angular2/core'
@Component({
selector: 'child11',
template: `
<button...
Hickie asked 23/4, 2016 at 19:55
2
Solved
I have an Angular 2 component that uses *ngFor to render a nested array of numbers.
@Component({
selector: 'app',
template: `
<div *ngFor="let row in data">
<div *ngFor="let curve in ...
Anacreontic asked 2/7, 2016 at 23:59
1
Solved
I'm binding an scroll event to capture the scroll and do something with it, I've created a directive like bellow :
So I have simple directive which has nothing but :
constructor ( private el :...
Melioration asked 19/5, 2016 at 6:47
2
Solved
I'm having difficulty with a component that doesn't refresh upon log in.
The component is navbar.component that contains links to my pages/components. On it, there is a "login" link that renders l...
Foredate asked 4/5, 2016 at 10:21
3
Solved
I want to be able to watch and update when a variable outside of angular2 changes. So let's say I have this in an external javascript file:
var test = 1;
How can I bind this variable to a proper...
Ichthyo asked 24/4, 2016 at 21:1
2
I have a list of components that contain dates(formatted with toLocaleString()) and other things. On top of them there is a component for creating new components, wich contains a form with some inp...
Krall asked 18/4, 2016 at 14:5
© 2022 - 2024 — McMap. All rights reserved.