<@U8SQRA1TJ> thats the same one I am looking at as...
# javascript
f
@dany thats the same one I am looking at as well! If one could integrate it into the build process so the models are always up to date and when I makes changes in the backend the typescript vue code stops working would be fantastic
k
So you both(@dany , @frellan) use Vue to write your views, but you have your controllers in Kotlin?
d
yes but not only controllers, data store too for me; everything not related to views (except some quite dumb computed Vue properties logic that remains in my vue components)
k
Ya I have done the same. Everything but views is in cross-platform Kotlin. Well except for some actual/expect stuff to glue it all together.
f
I have a kotlin server that talks json and a vue spa that consumes it, are you server rendering?
d
I would be very glad to get any feedback regarding SSR with VueJs ; reading the docs recently to use it from a ktor server
k
You could implement server side render if you wanted to, but this is really for single page apps
I don't think using Kotlin.js for simple web pages is a good idea a/ws lol
if its that simple you might as well just write JS
f
are you doing vue with kotlinjs?
d
it depends, I often start in JS then stumble on a problem I could fix in 2 lines in Kotlin so switch to Kotlin 😉
f
I mean, do you compile kotlin to js, so your entire codebase is kotlin?
k
Yes and no i don't use Vue. I just write my views myself in either raw kotlin or HTML
f
Oh yeah, got things mixed up sry, but then you are not doing a spa, you are rendering from server on every route?
k
No its a SPA, the web app creates each view and add its to the dom.
or Fragment's view in the case of Android
f
You mean you created a framework for that purely in kotlin?
k
The framework creates a consistent UI Application structure across web apps and Android (I'll add iOS once KNative moves to Beta, I am also an iOS developer professionally). The only thing which is not shared between is view creation and managing, which should be injected into each ViewController via actual/expect.