Posts by Marlon • 311 points
6 posts
-
5
votes1
answer553
viewsA: Doubt regarding the ||= ruby operator
First, let’s understand what ||= means in your code. Basically, and for ease of understanding, you can translate the code to something more didactic like: def adiciona(livro)…
-
0
votes1
answer344
viewsA: Whenever I use this error Syntaxerror: Unexpected token
Everything indicates that it is a mere syntax problem. But since you have a lot of code there, it is a little difficult to identify. I could only see that in the file car-Detail.component.ts you…
-
2
votes1
answer701
viewsA: Using two *ngFor at the same time in the Ionic2-framework
If your two arrays are the same size, you can do the following: <ion-row *ngFor="let mes of meses; let i = index"> <ion-col width-25>{{mes}}</ion-col> <ion-col…
-
1
votes1
answer201
viewsA: Lightbox in Angularjs 2
Angular 2 brought a totally different model for building Single Page applications. You can’t use the Lightbox directive for Angularjs 1 that you linked up there directly in Angular 2. Even the…
-
0
votes1
answer1219
viewsA: How to pass password in the Docker run
As you did, you need to modify Dockerfile at all times to change the value of the USER and PASSWORD variables. Also need to rebuild the image with Docker build -t .. Obviously, it is not very…
-
7
votes1
answer910
viewsA: Implement Lambda Expression TRUE, FALSE, AND, OR and NOT with Javascript
You chose a rather complex article to start understanding the lambas, huh? : ) It could have started with a simpler. First, you need to understand what a lambda is: it is an anonymous function,…