How do I break lines by value? For example
a = 8. Then I have a "d" variable that receives a string. var d="written work considered in its original wording". If I put an If = a; it traverses the string by always counting q for 8 characters it br...
Expensive,
I would like to know how I can validate the e-mail and CPF in angular 5.
I made the basic code:
<mat-form-field class="full-width">
<input matInput placeholder="E-mail" [formControl]="emailFormControl" [(ngModel)]="e...
I need to search an array with values of type:
equipamentos = [{marca: 'Nomedamarca1', modelo: 'Modelo1'},
{marca: 'Nomedamarca2', modelo: 'Modelo2'},
{marca: 'AlgumNomeComCase', modelo: 'Modelo3'},...
I have a simple application in Angular and I need to call my API to get a token . But I am facing difficulties. I'll try to explain a bit about my flow.
I created a service class where I instantiate it only once to store a Token. This token...
I'm working on an ASP.NET project with C # in Visual Studio 2015 and I came across error in the index.d.ts file. The error messages are Cannot find name 'Record' and Cannot find name 'undefined' . I saw that there would be so...
Why when declare method in a class the compiler beeps, stating that the use of the word function is wrong.
In previous lessons from my learning to create a function, I first signed it as function .
abstract class Empregado {...
Today I was asked what type never is for TypeScript, but it was confusing for me, is it just to say that it does not return anything? What's the difference to void ?
I'm developing a project using Ionic, and would like to better organize my classes.
Below is an example of how I would do with PHP:
<?php
trait comportamento {
public function ficarTriste() {
}
public functi...
I'm using Ng2-Smart-Table, according to the documentation it accepts an array of objects to mount the table:
No HTML:
<ng2-smart-table [settings]="settings" [source]="data"></ng2-smart-table>
In Javascript
import { NgxData...