Create Data with service

Hey there,

I have just a question my search haven’t answer to it so I need you.
So I would like to know if it’s possible to save and write automaticly in file.service.ts. and how ?
Is it common to do that or it’s an obligation to use db ?

Thank you for your help

Not possible during runtime. So you always need a db via capacitor/cordova or the webapi, which in cases also supports filesystem writes.

Why would you want to change source code during runtime? Or u want to do something before compile time? Then you need script runners etc. Like a preprocessor