Posts by duardbr • 301 points
12 posts
-
1
votes1
answer822
viewsA: Problem creating project with Angular CLI
Use git bash (which comes when you install Git for Windows). npm has problems in Windows mainly with this load bar when installing packages. You can also test using the flag to remove the…
-
2
votes1
answer62
viewsA: Can’t import the Observable package from the timer feature?
import 'rxjs/add/observable/timer'; const timer = Observable.timer(1, 1000); this.sub = timer.subscribe( t => console.log(`passou 1 segundo));
-
0
votes1
answer204
viewsA: Create background-image directive
Dude, I currently use this code to put a background on a page... as in your situation, if I don’t find what I want I use a default : getMyStyles() { const myStyles = { 'background-image':…
-
0
votes1
answer108
viewsA: Is it worth starting medium and large size projects with angular 2?
I believe that the main part of a project is its API. By creating a consistent API for back-end, choosing the front end is easier. In a solo project that I am working on, I am developing the…
-
1
votes1
answer293
viewsA: Firebase and Angular2
My collection at firebase My component import { Component } from '@angular/core'; import { AngularFire, FirebaseListObservable } from 'angularfire2'; @Component({ selector: 'app-root', templateUrl:…
-
2
votes1
answer1176
viewsA: Datatable with pagination server side
Last week I was doing some studies, and I created a Rails 5 API JSON project with about 100 lines, and I sent 10 out of 10 pages. Then I did a project in Angular 2 to read these lines, and take the…
-
0
votes2
answers445
viewsA: App.Config Layered Project
Wouldn’t it be better if you used the https://github.com/hamboldt/Correios.Net which already contains the calls to the ready webservice ?…
-
1
votes2
answers57
viewsA: There is a difference between connecting to the database using a class and the visual studio: Tools>Conect_to_database?
Friend, it depends on how you design your application. I am working on a C# Winforms application and I am using the Code First methodology. Therefore, every connection process is done via code. I…
-
0
votes2
answers305
viewsA: Best way to recover data for a Datagridview?
Good people, the best way to make this select, involving an entity and the user table (to fetch the user who worked last on the record) that I found, was this : protected override void Retrieve() {…
-
1
votes2
answers616
viewsA: Dynamic Connection EF C# Windows Forms Mysql
Basically, when initializing the application I make a small query in the version table of my system, if this query attempt gives error, for sure is connectivity problem, so I call a dialog so that…
-
3
votes2
answers305
viewsQ: Best way to recover data for a Datagridview?
What is the best way to recover data from a direct table to a Datagridview ? I have several doubts, because, many people do not recommend using Unitofwork which makes it much easier and leaves the…
-
3
votes2
answers2096
viewsA: Mysql and C#inheritance modeling
I solved this by creating a People table People have a field type [Physics, Legal] A Customer, points to a Person An Employee, points to a person etc. ...…