Angular4 automatic forms validation messages

I'm diving into Angular4 forms validation. I was wondering if there is any library that introduce validation of controls in a template driven form. What I'm looking for is a library that insert automatically the "Required." text field for every form...
more »

2017-10-04 22:10 (1) Answers

Handling several DOM elements in Angular4

I'm building a SPA in Angular4/typescript. I have several javascripts which manipulate DOM (add/remove CSS classes) which I want to integrate to the application. What is the best way to do it? Currently the structure of the application is the followi...
more »

2017-10-03 23:10 (1) Answers

Angular 4 scheduled form autosave

I'm trying to implement form data autosave in Angular 4. It should work like this: User changes some data in the form -> some save request to DB is invoked. Let's assume some timer is started here for 2s. During 2s from previous save request all ...
more »

2017-10-03 13:10 (1) Answers

Item date sorting from API JSON in angular

I've generated some news items from a laravel API output, i display these on a angular 4 cli project. I noticed the items aren't on descending order though and I'm trying to fix this on the client side. Check it out, this is what I've got. This is m...
more »

2017-10-03 11:10 (4) Answers

Angular Rendered2 removes first element

in other question Angular4 Rendered2 remove label text on addClass method But in this new one, I can not explain why remove the first element. This is my code for add validation messages: const input = this.Render.selectRootElement('[id="mergePass...
more »

2017-10-02 19:10 (1) Answers

Angular2 trackBy optimisation

How does trackBy work internally ? I mean does it rely on id property of ElementRef.nativeElement to get/set information ? (Because if not, what would be the purpose of the id attribute in ElementRef.nativeElement ?) ...
more »

2017-09-30 12:09 (1) Answers

how can I convert angular 2 app.module into es6

import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; //purposefully removed some imports @NgModule({ declara...
more »

2017-09-29 12:09 (1) Answers

Sort table header using Orderby in Angular 2

I am so new to Angular and I’m learning it from some tutorials on the internet. Now I want to learn how to sort table header of table of my heroes using orderby. I don’t understand pipe and how to call it from the component. I just don’t under...
more »

2017-09-27 03:09 (2) Answers

Facebook JS SDK Progressive web app issue

I have a Progressive Web App built with Angular 4. My Problem is the Fb login dialog does not close automatically when used from the home screen app. It works perfectly fine when opened in chrome browser but when i use it from installed home screen ...
more »

2017-09-26 15:09 (0) Answers

D3 zoom event firing on drag in Angular

Tldr; dragging the SVG causes it to rotate as well as translate. I am trying to implement dragging and zooming events on an SVG group using D3 (v.4) as part of an Angular service. this.unitGroup = this.svg.append('g') .attr('id', 'unitGroup')...
more »

2017-09-26 11:09 (1) Answers

Caching Data From HttpClient in Angular 4

i have a problem in making my caching more simpler. I think there is a better way to do this. My problem is that i have to do this "caching" codes in every get() function which is results in longer codes. Anyone help on how to do this the best way? T...
more »

2017-09-26 03:09 (1) Answers