-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Application Entry #169
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Guide > Nuxt Concepts > Application Entry
Section 1:
Brief about app.vue and its importance in Nuxt framework.
Section 2:
Section 3: Challenge
Application Entry
To give you the full control of your application, Nuxt allows you to define your own application entry app.vue to start minimal (optional).
app.vue
serves as the foundational component for your Nuxt application. Its usage depends on the type of application you're building.For SPAs,
app.vue
is essential. It acts as a container for all the content of your application. Think of it as the main framework that holds together all the different parts of your SPA.While not strictly necessary,
app.vue
can be beneficial for multi page application. You can use it to establish a consistent layout or include global components that should be present across all pages. This helps maintain a unified look and feel for your application.If your project is a simple landing page without multiple routes,
app.vue
can be the sole entry point. In this case, it directly defines the content of your landing page without the need for additional routing.For the simplest of applications, a basic
app.vue
might look like this:This renders a simple "Hello World!" message across every page of your application.
Challenge
Try to modify the app.vue` by creating an h1 tag with the text "Hello Nuxters!" and below create an h2 tag with the text "Welcome to Nuxt Tutorials".
@antfu any suggestions or changes would be a great help to go further. I hope I am going in right direction if not please guide me.
The text was updated successfully, but these errors were encountered: