Change your code to like below:
<span *ngIf="!editMode" (click)="edit();editMode = true" >span</span>
<input *ngIf="editMode" (clickOutside)="save();editMode = false;"
[delayClickOutsideInit]="true">
Here we are adding [delayClickOutsideInit]="true"
As per ng-click-outside documentation, it
Delays the initialization of the click outside handler. This may help for items that are conditionally shown
I'm looking for same method like getElementsAtPosition(x,y) but instead of position I want to get all DOM for a given area (may be a rectangle). So it should look something like getAllElementsAtArea(...
I'm looking for same method like getElementsAtPosition(x,y) but instead of position I want to get all DOM for a given area (may be a rectangle). So it should look something like getAllElementsAtArea(...
I have a GET method that returns the following JSON on route localhost:3000/documents [{ "id": "5b48bffc644fca001419769c", "names": [{ "name": "bob" }, { "name": "stan" } ]...
I have a GET method that returns the following JSON on route localhost:3000/documents [{ "id": "5b48bffc644fca001419769c", "names": [{ "name": "bob" }, { "name": "stan" } ]...
I have a controller with the path to create a row in my db The page model.js has a function that does an ajax post function autoSaveVideo(playPos){ $.ajax({ type: "POST", ...
I have a controller with the path to create a row in my db The page model.js has a function that does an ajax post function autoSaveVideo(playPos){ $.ajax({ type: "POST", ...
This is more of a code style question. In ES6, we can define arrow functions like so let hello = () => console.log('world') We can also replace () with _ to save one character, but jslint warns ...
This is more of a code style question. In ES6, we can define arrow functions like so let hello = () => console.log('world') We can also replace () with _ to save one character, but jslint warns ...