Questions tagged as 'angular'

2
answers

Error while attaching file Angular4

I'm trying to get a file attached via a button. The problem is that the file arrives but is not set up, as shown in the screenshots below, just below the images has the method and html of the button. docFile(event: any) { let reader =...
asked by 04.09.2018 / 13:53
1
answer

How to transform the json observable into datasource for Angular Material 2

This is usually returning from the database, but when it passes the datasource it becomes empty component import { Component, OnInit} from '@angular/core'; import { Tcp } from '../tcp'; import { TcpService } from '../../services/tcp.service...
asked by 01.09.2018 / 15:53
1
answer

How to import css in Angular 6?

I noticed that from version Angular 4.3 to Angular 6 they removed the .lang-cli.json file, because of this I am including in the main project file the index.html , but importing Font-Awesome is not working, would anyone have a suggestion?...
asked by 04.09.2018 / 20:46
2
answers

Form group does not update angular template

I am using formgroup and need to fill in the fields of my formgroup by receiving data from an array. I tried something like: My Form Group: produtoForm = this.fb.group({ nomeproduto: [''], valorcompra: [null], valorvenda: [nu...
asked by 21.09.2018 / 15:16
1
answer

Link breaking by typing directly in browser

I'm developing an angled project that is breaking the link when it has parameter and is typed directly into the browser, only occurs when it is published in IIS, if I do the same in the published in development in the "ng serve" this same error...
asked by 19.09.2018 / 16:14
1
answer

Integrate LTE Admin Template in Angular 6

I'm trying to integrate adminlte into my project, but I could not It's like he can not find the files I already gave npm i admin-lte --save-dev I have already added the files in angular.json "styles": [ "node_modu...
asked by 10.08.2018 / 03:55
1
answer

Implementation of Angled list with problem

I do not understand what's going wrong with my code, the code is correct, even so I can not list the data from my MongoDb bank. This is my HTML <div class="col-lg-12"> <h3>{{ title }}</h3> <table class="table table-ho...
asked by 13.08.2018 / 14:41
1
answer

Iteration of arrays and objects

I have the following data coming from api: { "unidades": [{ "row": { "0": { "titulo": "Unidade S\u00e3o Paulo", "url": "unidade-sao-paulo", "descricao": "Lorem ipsum dolor, sit amet consectetur a...
asked by 10.08.2018 / 03:04
1
answer

Direct Angled Rotation Problem

I published the Angular project on a machine with IIS, but when I try to access the link with a route it directly displays a 404 error, for example " link but if you access the url link "it loads normally, and if it is not logged in the syste...
asked by 17.09.2018 / 15:31
1
answer

Modal in separate components

Hello, I'm new to Bootstrap with angular, and I would like to know if a way to create a modal in one component and call it in another, for example: Component-parent component-modal so the parent component would have a button that would call...
asked by 06.08.2018 / 00:15