3 ms·
(not GP) with React, declarative JavaScript code can result in HTML. JS -> HTML Server side frameworks (the usual favourites) have existing ways for code to re
by danfo 6y ago
(not GP) with React, declarative JavaScript code can result in HTML. JS -> HTML
Server side frameworks (the usual favourites) have existing ways for code to result in HTML. Ruby/PHP/Java -> HTML
Vue on the other hand can sit within HTML. So you can sprinkle in client-side logic in the views while still generally going with the grain of your server side framework.
https://gitlab.com/gitlab-org/gitlab/-/blob/6cece3f49eb8777929b8a18a4fea1b8249bbb9df/app/views/projects/boards/components/sidebar/_labels.html.haml https://gitlab.com/gitlab-org/gitlab/-/blob/6cece3f49eb87779...
See `if can?(current_user, :admin_issue, @project)` (Ruby) and `"v-if" => "issue.labels.length === 0"` (Vue)
- debaserab2 6y agoDoes the v-if execute on the server side?