View information from a json with angular

-1

I have a json created with information that I want to visualize on the page with the use of {{}} and to do this I use the Http module and a service, but for this I have to add in the header constructor and the footer (which is where I want to visualize the information) but the ng server sends me an error and I do not know what to do anymore.

    
asked by ulysses316 06.12.2017 в 03:20
source

1 answer

0

As far as I can see, the word constructor is misspelled. In addition, you should put the variable with the private accessor, that is, it should be like this:

constructor(private _is: InformacionService){}
    
answered by 09.12.2017 в 17:40