Category : angular

I noticed when using this kind of validation: <label>Password</label> <input type="password" formControlName="password" class="form-control" [ngClass]="{ ‘is-invalid’: f.password.touched && f.password.errors }" /> <div *ngIf="f.password.touched && f.password.errors" class="invalid-feedback"> <div *ngIf="f.password.errors.required">Password is required</div> <div *ngIf="f.password.errors.minlength">Password must be at least 6 characters</div> </div> <div class="form-group"> <button class="btn btn-primary" (click)="alertX()">sdf</button> </div> When I focused the input and then click the button, ..

Read more

Issue I am trying to integrate paypal with Angular. When I call an injected service inside a function of the promise returned I am unable to do it. I need help in achieving it. Here are the steps I am trying to do. Click on the load PayPal button. Load the dynamically injected Braintree and ..

Read more

for example: """ A user device """ type device @model { id: ID! statusID: Int! devFunctionIDs: [Int]! functions: [devFunction] @connection(fields: ["devFunctionIDs"]) } """ A function or feature of a device """ type devFunction @model { id: Int! functionName: String! } In this situation I have an array of Int which correlate to functions. The array ..

Read more