How can i create empty view ui in vaadin-flow that must be empty header and body.
<html>
<head>
<!-- empty -->
</head>
<body>
<!-- empty -->
</body>
</html>
My created UI has many default tags and scripts inner header and body.
How can i create empty view ui in vaadin-flow that must be empty header and body.
<html>
<head>
<!-- empty -->
</head>
<body>
<!-- empty -->
</body>
</html>
My created UI has many default tags and scripts inner header and body.
Flow will always generate its own internal metadata, initialization logic and so on into the HTML document. Without those, Flow couldn't work.
Flow is not intended to be used in cases where you care about exactly what is in the HTML. This is the trade off you get by using Flow - you give up some low-level control and instead you gain the ability to control what's shown in the browser using a high-level server-side Java API.
The things that are generated there should still not affect what's shown on the screen. You should thus get a blank screen if you define a view class that doesn't add any visible content, e.g.
@Route("empty")
public class EmptyView extends Div {
}