惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
博客园 - 司徒正美
Last Week in AI
Last Week in AI
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
博客园 - 聂微东
M
MIT News - Artificial intelligence
博客园_首页
Jina AI
Jina AI
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
Vercel News
Vercel News
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG
N
Netflix TechBlog - Medium
B
Blog
Google DeepMind News
Google DeepMind News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

Netlify Developers

AI model comparison using Netlify's AI Gateway | Netlify Developers Build an AI agent to automatically process and summarize form submissions | Netlify Developers Build an AI agent to automatically generate relevant images for blog posts | Netlify Developers Prerendering SPA content pages to enable AI agent access | Netlify Developers Identify image optimization opportunities with Netlify Observability | Netlify Developers Fix top 404 page not found errors with Netlify Observability | Netlify Developers Introducing AI Gateway: built-in AI model access on Netlify | Netlify Developers Introducing Observability: your project insights on Netlify | Netlify Developers From first publish to first update with AI agents | Netlify Developers How to use Agent Runners on Netlify | Netlify Developers Add forms to your project with AI + Netlify | Netlify Developers Track Real User Metrics | Netlify Developers Lighthouse performance scores on Netlify | Netlify Developers Review your AI project before you ship | Netlify Developers Using environment variables in AI Projects on Netlify | Netlify Developers Build prototypes and MVPs fast with AI + Netlify | Netlify Developers Pause auto-publishing on Netlify | Netlify Developers Run serverless functions, storage, and more natively in Nuxt dev | Netlify Developers Netlify Office Hours: The AX Arcade challenge | Netlify Developers Netlify Office Hours: Prompting with style | Netlify Developers Netlify Office Hours: RAG Apps with OpenAI + Netlify DB | Netlify Developers How to build a RAG application with Neon, Netlify & OpenAI | Netlify Developers Netlify Office Hours: Netlify DB (powered by Neon) | Netlify Developers Netlify Office Hours: Netlify MCP Server | Netlify Developers Netlify Office Hours: Netlify Vite Plugin | Netlify Developers Building MCPs with Netlify | Netlify Developers Deploying sites from your AI tool | Netlify Developers Adding your domain using Netlify API | Netlify Developers Build a context driven chat bot with Netlify Blob and OpenAI | Netlify Developers Simplify deployments with Netlify’s branch-matching environment variables | Netlify Developers
How to deploy Angular 18 to Netlify | Netlify Developers
2024-05-29 · via Netlify Developers

Angular 18 has arrived, with new experimental support for zoneless change detection and a stack of improvements to SSR. Here’s how to upgrade your app to Angular 18 and deploy it to Netlify.

#TL;DR

Angular 18 is mostly an incremental update of stable features focussing on polish and stability. However under the hood it brings some exciting improvements and experimental new features. Deploying your Angular 18 app to Netlify is as simple as ever, and is still zero-config.

#What’s new in Angular 18?

After the dramatic changes in Angular 17 and the new preview features in the minor releases after, Angular 18 is a more incremental update. The team has focused on stability and polish, but there are still some exciting new features to explore.

#Big changes in change detection

In version 17.1, Angular introduced preview support for Signal Inputs, a reactive alternative to decorator @Input()s. They offer many benefits, one of which was to pave the way for zoneless change detection. Signals aren’t required for zoneless, but they work best together.

Angular has used zone.js since the beginning of Angular 2, so it is a major step to move to a new world of zoneless. Angular 18 introduces experimental support for this, and the team is keen to get feedback from the community. It unlocks some great improvements

#SSR improvements

The biggest improvement to server-side rendering in Angular 18 is the introduction of hydration support with i18, and in Angular Material. Angular 18 also takes further steps towards the merger of Angular and Google’s internal Wiz framework, with the integration of the event dispatch library that powers Google Search. SSR works out of the box on Netlify in Angular 17 or later, automatically deploying to edge functions if enabled in your app.

#How to upgrade to Angular 18

Simple apps running version 17 will be able to upgrade to Angular 18 by running ng update @angular/core@18 @angular/cli@18. However more complex apps, or those on older versions should follow the upgrade guide. You can then deploy to Netlify.

Netlify automatically detects Angular apps and builds them with zero-config. You can link your repository to automatically build and deploy your app, or you can deploy manually from the command line.

To link your site and deploy from the command line, first install the Netlify CLI:

npm install -g netlify-cli

Then link your site:

You can then deploy your site by running:

netlify deploy --build --prod

Alternatively you can link your repository in the Netlify UI to set up continuous deployment.

Try it

To get started with Angular on Netlify quickly, you can also clone and deploy a starter template for exploring and experimenting with just a few clicks. Use the button below to dive right in.

Deploy to Netlify