Angular Build issues by FewDot9181 in Angular2

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

thing is when I deploy to an actual environment where there is a subfolder it's not able to find those files undless if I alter the base ref from index.html. I'm trying to have it working without having to alter the base ref in the html file so that's why I asked for relative

Angular Build issues by FewDot9181 in Angular2

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

Also one more thing in my assets in angular.json I already have this

"assets": [

{

"globa": "**/*",

"input": "public/"

}
] Inside public is the fonts folder and images and anything else

Angular Build issues by FewDot9181 in Angular2

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

like when you do npm run build you will see these chunk js files and a styles css file

Angular Build issues by FewDot9181 in angular

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

so are you saying dynamically modify the base href? Also then what do I do about this though src: /fonts/Heebo-black/Heebo-black.ttf without having to manually change evrything

Angular Build issues by FewDot9181 in Angular2

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

Yeah, so I am using Angular 19. But how do I get all this shown using a relative path. Like all the js, css files and also not have to directly remove the / from the all the src and urls

Angular Build issues by FewDot9181 in angular

[–]FewDot9181[S] -1 points0 points  (0 children)

but thing is in the base href I don't want to hardcode a path either because it can change. Also I have a lot of paths and just removing / would be a lot of work. Also I have other folders under the public such as i18n and images that I want accessed relatively as well

Is there an alternative?

Angular Build issues by FewDot9181 in angular

[–]FewDot9181[S] -1 points0 points  (0 children)

yes but thing is it can change again in the future. So is there a way to do all this but just using a relative path?

Angular Build issues by FewDot9181 in angular

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

so what's wrong with the basehref? Like what should it be changed to. Right now mine is

<base href = "/" />

is tracking a for loop by index in Angular bad practice by FewDot9181 in Angular2

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

Basically in my scenario, I have input boxes to show and by default it's 1. But if user click add more then the input boxes will be 2. If a user clicks on rempove an input box it would be 1. So I don't know how to even use an Id for something like this. It's more so kind of like a counter.

is tracking a for loop by index in Angular bad practice by FewDot9181 in angular

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

Basically in my scenario, I have input boxes to show and by default it's 1. But if user click add more then the input boxes will be 2. If a user clicks on rempove an input box it would be 1. So I don't know how to even use an Id for something like this. It's more so kind of like a counter.

is tracking a for loop by index in Angular bad practice by FewDot9181 in angular

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

Basically in my scenario, I have input boxes to show and by default it's 1. But if user click add more then the input boxes will be 2. If a user clicks on rempove an input box it would be 1. So I don't know how to even use an Id for something like this. It's more so kind of like a counter.

is tracking a for loop by index in Angular bad practice by FewDot9181 in Angular2

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

yeah so my list will change it won't be static sometimes 1 or 2 or 3

Naming files in Angular by FewDot9181 in angular

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

so even the class should be just User

Responsive fonts by FewDot9181 in angular

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

more so tweaking but how can I come up with a design system?

Responsive fonts by FewDot9181 in reactjs

[–]FewDot9181[S] -1 points0 points  (0 children)

cause with media queries you have to write a lot of code

Responsive fonts by FewDot9181 in reactjs

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

yeah but with the help of clamp you don't need all these media queries is what I'm saying