fedect1 / graduation-project-fedect1

graduation-project-fedect1 created by GitHub Classroom
MIT License
1 stars 0 forks source link

Debuggable code #20

Open Dr4gon opened 1 year ago

Dr4gon commented 1 year ago

@fedect1 You can do the inline function in HTML and it will very hard to debug that.

button.btn(type='submit' :disabled="password1 !== password2 || !password1 || !password2") Create account

I personally prefer calling a function with params to able to debug properly and also to separate login concerns from the HTML code.