Questions tagged as 'angular4'

2
answers

Pass data from one component to another angular 4

I am using angular 4 and the problem is as follows, I do not know how to pass a variable from one component to another, in component 1 I get a data and I would like to save it in a kind of global variable, to be able to use it in the other compo...
asked by 09.02.2018 / 15:04
1
answer

Update the view in Angular 5?

I'm using a method that erases the files from the database by clicking on the trash when I click it, but it does not get updated in the view if I do not do f5 in the browser as I could do this without having to update the page import { Compone...
asked by 01.03.2018 / 20:37
1
answer

Angular 4 and route protection with my Auth Guard

I am creating an application in Angular 4 but I do not know what is happening that my router is protected with my Guard but it does not redirect me to the login page when I try to enter a forbidden URL, it could indicate me that I am doing wrong...
asked by 21.01.2018 / 04:23
4
answers

I can not get Json on Ionic

I'm having trouble getting the data of my own api and reading them in the ionic app, basically I do not get an error, the get occurs on the server with code 200, but in the app I do not receive anything, thanks for the help JSON response [...
asked by 17.01.2018 / 21:18
1
answer

Update nested data from Angular

How do I update this data?: Angular 5: export class Cualquiera{ constructor( private title: string, private datos: [{ title: string, description: string }] ){} } I have the backend...
asked by 08.02.2018 / 13:13
1
answer

Share content of two related tables MySql

MYSQL I have two tables in mysql, then I show the model: In which I need to recover all the players to which they belong to a club in specific. for example: Real Madrid and its entire staff. QUERY SELECT eqpo.nombre_equipo, jdrs...
asked by 09.03.2018 / 21:07
1
answer

Why does not my component detect changes if I execute their methods from another component?

I have 2 components called a slider and another called nav in the slider view I use [className]="myclass" to assign it a class from the myclass variable, when I make changes from the same componet slider, this variable changes normally but wh...
asked by 29.12.2017 / 18:08
1
answer

Obtain width of an element using Angular 4

I have a component that shows an element with a width of 95% so that according to the width of the screen it will have some measurements or others. How could I get the width of this element from my component? I leave the code for that...
asked by 11.01.2018 / 19:07
1
answer

I do not want to work the decorator @input in angular

Good morning to want to pass data from father to son with the decorator @ input to run the page I get this on the page: Failed to compile. ./ src / app / son / hijo.component.ts Module not found: Error: Can not resolve '@ angular / core /...
asked by 14.01.2018 / 16:08
1
answer

* ngFor nested does not show the results

I have an object that I recover from Firebase that has a series of properties and one of them is an array. When I try to show the properties of the object using * ngFor and I have to show the array I use another * ngFor that is nested and...
asked by 27.01.2018 / 14:27