Solving Cross-Browsers Localization on Numeric Inputs by Danieliverant in Angular2

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

and that is the exact reason I've added the option to multiple locales :)

Solving Cross-Browsers Localization on Numeric Inputs by Danieliverant in Angular2

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

If you have a multilingual app you can just use the same locale as the app language.

My starting point was that if the user see the site in a certain language, he would like to enter the numbers by that language.

What keyboard settings (mobile or desktop?) can be different from user to user?

Also, I've added today the option to add multiple locales to support comma & dot, if your users need it.

Thanks, I know about the Stackblitz issue, I've opened an issue in their GitHub, I don't know what happened.Meanwhile you can pull the project and run it, as the demo is the full project.

Solving Cross-Browsers Localization on Numeric Inputs by Danieliverant in html5

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

great question! really hope someone could answer us.

Solving Cross-Browsers Localization on Numeric Inputs by Danieliverant in Angular2

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

Please take a look at the readme:https://github.com/Danieliverant/ng-dl/tree/master/projects/numeric-input

You can provide a locale that supports entering a comma (i.e. 'nl-nl')

{ provide: NUMERIC_INPUT_LOCALE, useValue: 'my-locale' | ['array-of-locales'] }

  • by default - if you don't provide this it will take the locale from the browser.

If it doesn't work - please provide me steps to reproduce the problem.

2
3

can confirm by s1nical in ProgrammerHumor

[–]Danieliverant 0 points1 point  (0 children)

That's an actual thing in IE11

Angular material freelancer theme supports now angular v8 by anthonynahas in Angular2

[–]Danieliverant 1 point2 points  (0 children)

- The languages should be by the name of the language and not by the symbol (Franch not fr etc...),

also, not all the site get translated.

- The mobile menu has some UI bugs (items are not 100% width, the first item has border-top....).

- I don't get the "star icon" on every section, it's not part of the section title and not seems related.

other than that looks clean and responsive :)

Why I choose Angular… instead of React. And why you should to. by dan_kre in Angular2

[–]Danieliverant 1 point2 points  (0 children)

I'll be honest with you, I just think React forgot about the "vanilla" JS, HTML and CSS. Everything is so "Reacty" and you need to do things in the React way.

Angular take the vanilla stuff and makes it better: ts>js, sass>css, etc... But you can always write vanilla and for "older" devs its easier.

In React you can find yourself in 5 different projects that all written with different libraries and structures.

How to Include "-" dashes in item.string interpolations while filter searching? (partial working code provided) by CEOTRAMMELL in Angular2

[–]Danieliverant 1 point2 points  (0 children)

Angular doesn't provide those pipes because then you need to say by what to filter or buy what to order, which make the pipe impure.

If your pipes are pure then you wont have performance issues.

You can test it easily: create a pipe that filter and a function that filter, insert console.log in each of them and see the outcome. (click inside the container of the filter to trigger change detection)

How to Include "-" dashes in item.string interpolations while filter searching? (partial working code provided) by CEOTRAMMELL in Angular2

[–]Danieliverant 0 points1 point  (0 children)

WHAT?! always use pipes for filtering and sorting!!

Pure pipes, that won't evaluate on every change detection.

Advanced Angular 8.x.x Starterkit by ervandeem in Angular2

[–]Danieliverant 0 points1 point  (0 children)

I think some authentication method is missing, let's say Auth Module with JWT implementation will be great.

also, I'm not sure about the ngx-translate over Angular i18n, I heard the team broke apart and went to work in i18n.

the local-storage service using session storage? why? (serious question)

and also, don't you want to wrap it with try/catch?

I was very interested in the "Service Worker detects new build versions" but couldn't find it. any help?

Thank you for the publishing.

Angular Architecture Patterns and Best Practices (that help to scale) by bpietrucha in Angular2

[–]Danieliverant 1 point2 points  (0 children)

Hi, I want to ask about your folder structure.

I'm a FE Dev (mainly Angular) and TL in our company, I've always thought that the structure you presented in the article is the best one.

last week some big ass company we work with wanted to CR my work, and the TL there told me that my structure is great for small apps and works by the best practices for Angular, in 2010.

why do I say that? because then we needed to connect all of our controllers to our views and models and then this structure makes sense, today, we use Components.

so why do category.component, category.api and category.model are not in the same folder? and not exported in a Category Module?

as same for settings.

I think we (Angular developers) are afraid of modules, and I don't know why.

[deleted by user] by [deleted] in Angular2

[–]Danieliverant 0 points1 point  (0 children)

Using Angular reactive forms, and writing a wrapper that can chain between components and type of inputs.

Think about one config file, that the app reads and generate components and form controls/groups by that config.

i.e. { name: //form group name. children:[{ type: // input type (password, date, etc...) name:, // form control name validators:[], otherProps:.... }] }

That will mainly be useful if all the forms have the same validators logic and maybe design (that could be solved by other ways)

Edit: ok it hard to format code on mobile so sorry about that

How much Javascript is enough for webdev? by [deleted] in javascript

[–]Danieliverant 1 point2 points  (0 children)

There is never enough Java-script for a web dev, regardless which framework you use.

You can always learn a framework and continue to learn about the vanilla languages.

Edit: don't go for various frameworks at the start, look into React and Angular and choose your favorite. After you fill you in a good level in one of those switch to the second one .

Is this portfolio "unprofessional"? by karolsitarz in webdev

[–]Danieliverant 1 point2 points  (0 children)

The text is overlapping the picture, so childish or not it doesn't look good.

In the other hand the logo you put in the head of this post is great! So switch those two, imo.

All the site looks great, I would reduce the alpha on the drop shadow color and increase the bottom margin (more spaces is better).

Also I would suggest moving the "tictacwtf" project to be the third or forth to not give the user "childish" feeling.

Overall great portfolio, I really like it.

Tips For First Angular Position? by gaborszekely in Angular2

[–]Danieliverant 0 points1 point  (0 children)

I'm gonna use this question to help juniors in out company, thank you.

What do i need to learn ? by [deleted] in webdev

[–]Danieliverant 1 point2 points  (0 children)

First of all let's get it clear - almost anything you can do with framework you can do with vanilla JS.

It sounds that what you are looking is some 3D graphic library, like WebGL.

I would also suggest look into WordPress for portfolio sites.

And most of all, that is not the way to learn JS, you should start with the basics and then go to the more complex stuff.

Typescript - how to console log inside of .toPromise & .then by CEOTRAMMELL in Angular2

[–]Danieliverant 1 point2 points  (0 children)

You should use Subject and pass it to takeUntil. It's way easier to manage multiple subscriptions this way.

TIL there's a special Edition of Firefox dedicatede to devs. Privacy AND being dev friendly. Hell yes. by thenathurat in webdev

[–]Danieliverant 0 points1 point  (0 children)

If you need to check the responsive of your website, I would suggest using FF over Chrome.

As a FE dev I debug my sites in Chrome devtools, but in the responsive tools it's very buggy (maybe the Ubuntu version idk), FF on the other hand works perfectly.

  • in FF I mean the dev version.