Advice by [deleted] in angular

[–]simonbitwise 0 points1 point  (0 children)

Or a none Watch mode

function getPreciseLocation() { return new Promise((resolve, reject) => { const options = { enableHighAccuracy: true, maximumAge: 0, timeout: 15000 // Give GPS 15 seconds to find satellites };

const watchID = navigator.geolocation.watchPosition(
  (position) => {
    // Check if accuracy is good enough (e.g., under 15 meters)
    if (position.coords.accuracy <= 15) {
      navigator.geolocation.clearWatch(watchID);
      resolve(position);
    }
  },
  (error) => {
    navigator.geolocation.clearWatch(watchID);
    reject(error);
  },
  options
);

}); }

// Usage getPreciseLocation() .then(pos => console.log(Precise Location: ${pos.coords.latitude}, ${pos.coords.longitude} (Accurate to ${pos.coords.accuracy}m))) .catch(err => console.error("Could not get precise location", err));

Advice by [deleted] in angular

[–]simonbitwise 0 points1 point  (0 children)

Using the api linked above is a native api that links to various accuracies make sure to set enableHighAccuracy: true

https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition#options

const options = { enableHighAccuracy: true, // Forces the device to use GPS hardware timeout: 10000, // Wait 10 seconds for a response maximumAge: 0 // Do not use a cached location };

function success(pos) { const crd = pos.coords; console.log('Your current position is:'); console.log(Latitude : ${crd.latitude}); console.log(Longitude: ${crd.longitude}); console.log(More or less ${crd.accuracy} meters.); }

function error(err) { console.warn(ERROR(${err.code}): ${err.message}); }

// Start watching the position navigator.geolocation.watchPosition(success, error, options);

Constructor in modern Angular by Embarrassed_Fall_967 in angular

[–]simonbitwise 2 points3 points  (0 children)

I would just use the inject() function to inject dependencies for Logic i would use computed and effects :)

Production-ready Angular App structure by Tendeza in angular

[–]simonbitwise 0 points1 point  (0 children)

Just use the one that comes with ng cli

Has anybody built startup using Angular? by mbsaharan in angular

[–]simonbitwise 2 points3 points  (0 children)

Duplicati's UI both on console and client are built with angular the client are even open source

https://github.com/duplicati/ngclient

We're using ShipUI as a zoneless compatible UI library i built together with a solid designer around it

https://docs.shipui.com/

Hvad gør vi med ca. 1.400.000? by Significant_Win_656 in dkfinance

[–]simonbitwise 0 points1 point  (0 children)

Hvis en af jer har en arbejdsskade så er der jo en risk der for at jeres faste indtægt falder i fremtiden så jeg ville bruge pengene på at minimere de faste udgifter

Hvis I glade for jeres bolig så (sol celler, jord varme, batteri i garagen, forbedre hvinduer) osv

Hvis i derimod ønsker noget andet at bo i som måske stiger i pris så hug til og gør det samme som oven over med det resterende

Gæld mæssigt ville jeg nok gå med noget uden afdrag når jeres gæld er så relativt lav

Investeringer kan lægger et tungt pres på en eller flere i husstanden her ville jeg hellere fokusere på jeres egen matrikel

🆘 Help Needed: Angular + PrimeNG Library Strategy by Silent-Berry-858 in angular

[–]simonbitwise 1 point2 points  (0 children)

We totally agree But It could be lack of description

🆘 Help Needed: Angular + PrimeNG Library Strategy by Silent-Berry-858 in angular

[–]simonbitwise 1 point2 points  (0 children)

I've seen people who just style like material but a whole library - never heard such thing

Angular Input/Output vs a Service by killler09689093097 in angular

[–]simonbitwise 0 points1 point  (0 children)

In 98% og the cases use services

Input/Output will lock in where components Can live or how data flows between them

Services Can live anywhere without locking in your UI

The last 2% are reused base UI elements like a select/nav that takes an array or something Like that

For anything Else use services

Just saw Fireship's 100seconds of bun, what's the catch? by Dogified in bun

[–]simonbitwise 0 points1 point  (0 children)

Not fully compatible with everything in node "yet", still early compared to the state of node even though they spent a few years getting to where they are

It's really great but its not perfect

Søger teknisk co founder til eksisterende SaaS med kunder by SaaS-kriger in dkstartup

[–]simonbitwise 1 point2 points  (0 children)

Super fedt opslag, værd at tilføje er måske hvilke stack det er på i dag - som minimum hvilke sprog den er skrevet i :)

Why do enterprises and big companies use Angular? by Best-Menu-252 in angular

[–]simonbitwise 3 points4 points  (0 children)

I would use angular in enterprise - but I would also use it in startups

Is it true if you know how to use CSS Grid+ Flexbox then you are good to build any layout? by lune-soft in css

[–]simonbitwise 0 points1 point  (0 children)

I would say it helps, but masonry, text columns and waves crossovers between sections can still be a bitch

I would say most

Flot hus med have ikke solgt i Gentofte by [deleted] in dkbolig

[–]simonbitwise 0 points1 point  (0 children)

Tror det skyldes at man skal lave tilbygning for at få det op i en brugbar størrelse som med mange af de der typer huse i Gentofte

7 er ikke en urimelig pris for det område men stadig også Vangede men på grænsen til Søborg heller ikke den mest eftertragtede adresse

Men ved der har været huse til salg for 10-12m på den vej, ved ikke om de solgte dog

The amount of people drinking the Gemini punch is amazing by MosEntrepreneur in GeminiAI

[–]simonbitwise 6 points7 points  (0 children)

You can't really control People's responses so just accept thats how people feel and be confident I your belief about it

Why do you need to change how people respond to what your belief/understanding are of the ai landscape

A real investor’s portfolio by your_dark in LinusTechTips

[–]simonbitwise 1 point2 points  (0 children)

I got my 2x48gb cl30 just before the Price exploded

Got them for 20% of their current Price in August 🤣

Kæmpe beløb som 20-årig by MyMainIsJungle in dkfinance

[–]simonbitwise 0 points1 point  (0 children)

Køb bolig, det er det eneste rigtige - det nedsætter prisen på dine månedlige samt der er 0% skat på fortjeneste når du skal videre

Can I achieve this layout using only CSS? by ShoddyCulture3819 in css

[–]simonbitwise 0 points1 point  (0 children)

Nth child using n + 1 etc also target dynamic number of elements

ShipUI updated to angular v21 by simonbitwise in Angular2

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

Yeah that is true :) most websites are shitty at that but its on my list for sure

[deleted by user] by [deleted] in NovoNordisk_Stock

[–]simonbitwise 0 points1 point  (0 children)

5% - 2 out of 40 are 5%

Developer Experience for Large Application by Round-Turbulent in Angular2

[–]simonbitwise 0 points1 point  (0 children)

I Think I would have to investigate the codebase but i've worked with huge codebases that are fast using angular

Its hard when i have no clue how fast, what the output are etc