SSemlainsemla.hashnode.dev·Mar 22, 2023 · 2 min readCORS chaos, or to CORS or not to CORSAdding a rewrite to firebase.json allows you to call your endpoint on the same domain. But how do you get that working locally during development?Turns out the way to add a similar rewrite when developing involves webpack and proxy.conf.json. Anyone...00
SSemlainsemla.hashnode.dev·Mar 19, 2023 · 2 min readShow loading animation at the right place in a list of linksA loading animation is easy to set up in Angular by subscribing to router events. But how do you show it by the clicked link in a list of links?I scratched my tired head, which eventually came up with a solution When the user clicks a link, and the ...00
SSemlainsemla.hashnode.dev·Mar 4, 2023 · 2 min readMatrix vs Query, the advantage of matrix parametersIn Angular you can choose to use matrix parameters. While the name sounds a lot more inspiring than the more common query parameters, matrix parameters also have one feature that makes them better. The first time I saw matrix parameters was in Angula...00
SSemlainsemla.hashnode.dev·Mar 3, 2023 · 2 min readPub/sub Sisyfos stupiditiesIn a project using Google cloud functions I recently got billed 10 times the normal amount. Turns out the delinquent is the pub/sub system. Googles pub/sub system is a very handy way to execute background tasks. Since you want the Cloud function to f...00