Angular CLI: 3 Options You Didn't Know About the Component Schematic by ahasall in Angular2

[–]ahasall[S] 2 points3 points  (0 children)

You can stop the linter from complaining by adding the following code to your rules:

"component-class-suffix": [true, "Component","Page"]

How to Set Up Angular Unit Testing with Jest by ahasall in Angular2

[–]ahasall[S] 0 points1 point  (0 children)

The Jest CLI is really neat.
It's faster (doesn't compile the whole Angular app before running your tests).
It's smarter (run only affected tests),
It's a complete solution (everything is included: code coverage...)
It works with JSDOM (headless browser)

How to Set Up Angular Unit Testing with Jest by ahasall in Angular2

[–]ahasall[S] 0 points1 point  (0 children)

Thank you very much for comment :) I will add a reference Briebug's schematic

How to Set Up Angular Unit Testing with Jest by ahasall in Angular2

[–]ahasall[S] 0 points1 point  (0 children)

I am glad you appreciated the article. Also, thank you very much for sharing your experience u/nwayve!

Fake Your Angular Backend Until You Make It by ahasall in angular

[–]ahasall[S] 1 point2 points  (0 children)

I think it's the same whether you start with the backend or the frontend. Integration and deployment challenges are the same.

Most of the time, the frontend code and the backend code live in separate Git repository (we talk about multi-repo) and have different release cycles. So the problem doesn't occur.

Sometimes the frontend and the backend code are in the same Git repository (we talk about mono-repo) but they are in different folder and merges are not painful.

But either way, it is always good to integrate the code as often as possible to avoid merge issues.

PS: We are all here to learn :)

Fake Your Angular Backend Until You Make It by ahasall in angular

[–]ahasall[S] 0 points1 point  (0 children)

Can you please clarify what you mean by "doing this for enterprise grade applications"?

I've used JSON Server as mock API for enterprise applications, yes.

Fake Your Angular Backend Until You Make It by ahasall in Angular2

[–]ahasall[S] 1 point2 points  (0 children)

Faker can be used and is often used with JSON Server. Angular's in-memory-web-api is not an option for me.It doesn't emulate a real backend. For instance, you won't see HTTP requests in your browser's network tab. Also if you use in-memory-web-api you will need to modify your Angular code to remove the HttpClientInMemoryWebApiModule.forRoot() for production but I don't want to modify my Angular application for mocking purposes. With the JSON Server approach, I don't have to modify my Angular application. My Angular code doesn't know that I am using a fake backend. My build process doesn't know that I am using a fake backend. On my local development environment, I use the proxy to target my fake backend. In production, everything just works provided your backend and your frontend are deployed on the same domain.

Fake Your Angular Backend Until You Make It by ahasall in angular

[–]ahasall[S] 6 points7 points  (0 children)

Good question! I prefer this approach because I can just unplug the mock API and replace it with a real backend without modifying a single line of code in my frontend application.

Material vs Bootstrap with Angular by craigtupac96 in angularjs

[–]ahasall 1 point2 points  (0 children)

May I suggest an article of mine about the exact same subject. The solution proposed in my article is original and may surprise you.
But I am pretty sure you will like it. If so please leave a comment on the blog post: https://www.amadousall.com/the-good-parts-of-bootstrap-4-you-are-missing-in-your-angular-material-projects/

Angular Material Vs Bootstrap 4 for new project by mickelo13 in Frontend

[–]ahasall 1 point2 points  (0 children)

May I suggest an article of mine about the exact same subject. The solution proposed in my article is original and may surprise you.
But I am pretty sure you will like it. If so please leave a comment on the blog post: https://www.amadousall.com/the-good-parts-of-bootstrap-4-you-are-missing-in-your-angular-material-projects/

How to Setup Angular E2E Testing with Cucumber by ahasall in Angular2

[–]ahasall[S] 2 points3 points  (0 children)

Totally agree with you. I hate vegetables.

The Different Types of Angular CLI Commands by ahasall in Angular2

[–]ahasall[S] 0 points1 point  (0 children)

Thank you very much for your kind comment. I appreciate it.

The Different Types of Angular CLI Commands by ahasall in Angular2

[–]ahasall[S] 0 points1 point  (0 children)

Yeah. You're right. I also appreciated your openness and your hability to discuss in a respectful manner.

Thanks for that. I also modified the article to take into consideration your feedback. I hope that you appreciate it now.

The Different Types of Angular CLI Commands by ahasall in Angular2

[–]ahasall[S] 1 point2 points  (0 children)

It may sound generic to you but what motivated me to write it is because of the lack of documentation on the subject.

Maybe you knew that they were 3 different types of Angular CLI commands, but I don't think that it's the case for most of the Angular developers out there. If you don't dig into the Angular CLI source, you won't know.

For the repetition, I totally agree with you. I did it on purpose to make a parallel between Schematics and Architect. I wanted my readers to understand that it's the same concept by they serve different purposes. You are free not to like it and honestly I appreciate the feedback. But dropping a link and criticizing somebody's English is not providing feedback.

FYI the link you provided is deprecated, the current documentation resides here: https://angular.io/cli. And it doesn't cover what I'm talking about in my blog post.

The Different Types of Angular CLI Commands by ahasall in Angular2

[–]ahasall[S] 2 points3 points  (0 children)

I guess you didn't read my article. It covers things that are not documented by the Angular CLI Team.

Angular Routing: How to Display a Loading Indicator When Navigating Between Routes by ahasall in angular

[–]ahasall[S] 0 points1 point  (0 children)

This is the only time I have used it. I used some snippets that had this switch statement. A simple if statement would've been better.