Questions tagged as 'angular'

0
answers

Operator '' can not be applied to types 'boolean' and 'number'. ng build --prod

I wonder what might be happening in this case. Every time I try to run the command ng build --prod this error appears saying that it is in the HTML file of one of the components in line 76, it follows that line of error below. To which ev...
asked by 26.03.2018 / 13:59
1
answer

Format ISO date (yyyy-MM-ddThh: mm: ss.sssZ) to be displayed in INPUT (dd / mm / yyyy hh: mm)

The server hands me the date in ISO format (yyyy-MM-ddThh: mm: ss.sssZ). How do I make this date appear in the input format with dd / mm / yyyy hh: mm? <input type="date" class="form-control" ng-model="tarefa.createdAt" /> I'm using a...
asked by 22.03.2018 / 20:03
0
answers

Angular 2 and material.angular.io

Example named "Table retrieving data through HTTP", link . But I've changed to fetch from the database. The information comes from the database. Always give this error: My code import { Component, ViewChild, OnInit, AfterViewInit...
asked by 22.03.2018 / 20:10
1
answer

Show template according to user status

I am developing a system but I am having difficulties in the authentication part, or rather not in the authentication part, but in the part of showing or not certain content according to the status of the user (logged in or not). Basically, I'...
asked by 23.03.2018 / 14:39
0
answers

How to share a formGroup with several angular components loaded with lazyload?

I would like to know is there any way to use a formGroup for the component parent and the childs components as described in the image? or if I should create a service to handle this and how to do it     
asked by 27.03.2018 / 14:39
0
answers

Ajax (AngularJS) returning HTML from the page itself

I am using Codeigniter to retrieve data from the database. Controller: <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Welcome extends CI_Controller { public function __construct() {...
asked by 19.03.2018 / 00:02
0
answers

Get element inside ng-transclude

I created a directive and I'm trying to get a DOM element inside ng-transclude, but when I do a find () looking for elemnto, jqLite does not find HTML using directive: <categorias> <span class="category-name"> categoria </sp...
asked by 22.03.2018 / 13:49
0
answers

Error ionic cordova run android

I'm having the following error when I try to run on android, physical device macOS system (node:614) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Could not find an installed version of Gradle...
asked by 20.03.2018 / 13:43
0
answers

How to insert JS angle template ready in a Spring project?

I work with the back end using java with Spring and decided to venture into the angular. But as I do not have much patience I decided to use a template ready that I downloaded on a website. The question is how to add this template to the exis...
asked by 14.03.2018 / 23:26
1
answer

Click on an item and send to the specified page

I'm new to ionic and wanted a tip from you guys. You have a fixed list in my app with the services that it provides after creating this list in the main view I would like to click on a certain item to go to the page of your particular function....
asked by 12.03.2018 / 19:47