Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
344 views
in Technique[技术] by (71.8m points)

How to make look and feel consistent between Angular Material views and non angular based server side pages?

My front end application is built with Angular 11 using material components and the backend is written in spring boot. The majority of the UI is written as angular components but there are some pages that I want build on the server side. For example, if the user clicks on a confirm email link I want to launch them into a server side generated page that displaying successful email confirmation message. I want the server side generated pages from Spring Boot Thymeleaf to look and feel and same as the angular material pages.

I have heard about Angular Universal but the backend is written in Java and I want to avoid adding NodeJS to the backend tech stack if possible. I am also new to frontend development this is my first app.

I figured I can reuse the angular material typography styles to at least have the same fonts but I am not sure how I can get the same layout as @angular/flexlayout to keep a consistent look and feel.

What startegies can be used to ensure a consistent look and feel between angular material on the client side and server side generated pages using Thymeleaf or non JavaScript based server side rendering frameworks?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...