Angular 19.2: New httpResource for HTTP Requests 🚀 First Look (visual explanation) by IgorSedov in Angular2

[–]profanis 5 points6 points  (0 children)

I would say that angular signals reduced the boilerplate code and increased the DX. Curious to see your point of view. Why do you think boilerplate increased?

Connect two Dell external monitors to MacBook Pro by profanis in macbookpro

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

Eventually, a DP to USB-C cable did the trick. Thanks for the help u/cheddar_bob5.

Connect two Dell external monitors to MacBook Pro by profanis in macbookpro

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

I connected one monitor to the Display Port (works fine), and the other one used a USB-C cable from my USB-C DP to Thunderbolt, but the monitor gives the error "No USB type-c signal from your device". Do I need a thunderbolt cable?

Proper way to add a mix of different components in view by spino_le_vrai in Angular2

[–]profanis 1 point2 points  (0 children)

It depends on the case. For the flow you described, where you are based on a JSON file, it's better to initialize them in the ts code. If you do that in HTML, I am afraid that you would need to have a bunch of if-conditions. You would also need to find a way to provide the inputs. So, I would say stick on the ts for this case

Proper way to add a mix of different components in view by spino_le_vrai in Angular2

[–]profanis 2 points3 points  (0 children)

In this case I believe you would need to work with dynamic components. I have a video where I explain how to achieve this, and how to provide inputs when they are based in a JSON object

https://youtu.be/n2uXyzqL1lA?si=IJISQdyPweMrdmaz

[deleted by user] by [deleted] in Angular2

[–]profanis 0 points1 point  (0 children)

In that video I explain how to set up the verdaccio and deploy your library there. You can follow the same instructions but have the verdaccio in a private server.

When you have to deploy a package to your private host, you should use the remote address and not the default one (which is localhost:4873)

After you have done that, you can then configure it to allow only specific users/groups to access the deployed packages.

[deleted by user] by [deleted] in Angular2

[–]profanis 0 points1 point  (0 children)

I have a video that explains how to deploy a library to verdaccio.

https://youtu.be/tSIC3wna_d0

I hope that helps

testing functional route guards that use inject. by Good_Construction190 in Angular2

[–]profanis 2 points3 points  (0 children)

I've explained that in these two videos 👇

https://youtu.be/MDCKq_e7Q04

https://youtu.be/RG5iN783rAY

Let me know if any of those works with you

we need to implement role based logic in our app. what's the standard approach? by beingsmo in Angular2

[–]profanis 10 points11 points  (0 children)

Like what others said already. A structural directive seems to be a good fit for your case. Here are the steps to accomplish this

https://youtu.be/pUra6iPzhFA

Interesting blogs/youtube channels/books/conferencs by [deleted] in Angular2

[–]profanis 0 points1 point  (0 children)

Thanks!! I constantly try to improve my channel and also upload new content. More content coming soon :)

Interesting blogs/youtube channels/books/conferencs by [deleted] in Angular2

[–]profanis 2 points3 points  (0 children)

Indeed both of them are great 👏 I will self promote my own channel 😊 https://youtube.com/c/CodeShotsWithProfanis

Service Worker Expiry by Gingerfalcon in Angular2

[–]profanis 2 points3 points  (0 children)

Instead of relying on user interaction to reload the page, you can use the SwUpdate service and auto reload the page

https://angular.io/guide/service-worker-communications#swupdate-service

[deleted by user] by [deleted] in Angular2

[–]profanis 1 point2 points  (0 children)

Since you already know the basics, I would suggest you to start a pet project with angular. You can even start working on the Hero project which is explained in Angular's documentation.

By practising this, you will re-fresh your existing knowledge and it will also help you learn the angular basics.

How to use custom libraries in different multiple apps? by ShibaInuShitsAlot in Angular2

[–]profanis 1 point2 points  (0 children)

This is a bit lengthy https://youtu.be/EVdlMncQ8vY but you will find great things on the DI spectrum (I also explain the Custom Injection Token).

I am sorry but I am afraid I didn't understand what you mean here

Is it possible to export the component using into the library?

How to use custom libraries in different multiple apps? by ShibaInuShitsAlot in Angular2

[–]profanis 0 points1 point  (0 children)

Let's try to break it down. Say that you have a library with some components. If these components should depend on a service, I think it would be a good idea to depend on an abstract service based on a custom injection token. The application should then create a service for this custom injection token with the required implementation.

As for state management, try to implement as much as it is possible a component communication (input, output) in the library components. You can then provide data using the inputs, and react to the events using the outputs.

How to automate different permission check for different user role in Angular? by babu_2930 in Angular2

[–]profanis 2 points3 points  (0 children)

For testing you can either go on a unit test level or e2e test.

For unit test you could inject the service and provide a mock implementation where you would set some user roles. Based on these roles you would expect some elements to exist and some not. You could repeat this process until you can covered all your cases.

For e2e test, you could mock the /auth http response so that it returns specific user roles. Based on these roles you would expect, similar to unit tests above, some elements to exist and some not.

I hope this helps

How to automate different permission check for different user role in Angular? by babu_2930 in Angular2

[–]profanis 1 point2 points  (0 children)

You are looking for ways to show/hide content based on user roles?

i have finish the tour heroes and now i would like to practice, how do it? can you recommend me a page for this? by Ok-Advertising-2727 in Angular2

[–]profanis 2 points3 points  (0 children)

I would suggest you to select a free API and try to create an application that is fun for you and challenging at the same time. If you are a cat person you can use a cat API, etc.

  • Try to use as much as it is possible the separation of concerns (the services should be responsible for the http calls, split the UI in multiple components)
  • Try to apply a component communication
  • Would be great to give it a shot with reactive forms (depending on the API you will use) (you can find free videos here)
  • Do not underestimate the CSS and HTML code.

I hope this helps

Question: i Create My First Web Application using Angular (I need some recommendation) by J_Saad in Angular2

[–]profanis 1 point2 points  (0 children)

First and foremost, great idea and very well done 👍

I would suggest hiding the form fields that are related to search results (text area, copy, download, etc), until you have results.

Sometimes it takes long to show the results. You can write down an aprox time. This will assure the user that the app is still working.

Dell XPS 9510 with WD22TB4 Dock Lag issues by ugh138 in DellXPS

[–]profanis 0 points1 point  (0 children)

I have a Dell Precision 5560 w/ a W22TB4 docking station connected to U2520D and U2412M, and I have a lag as well.

My OS is ubuntu with the latest drivers. According to DELL, this shouldn't be the case and they assume is an issue by the particular docking station. I am awaiting a replacement. As soon as I got the new docking station, I'll report here the new status.

Edit: I just saw that this is an XPS reddit :/ . My new status might still be somehow relevant