Deliver web apps with confidence 🚀
Find a file
Andrew Scott a0551ee761 refactor(router): Eliminate constructor parameters in Router class (#48215)
The Router constructor and `setupRouter` factory mainly exist as a
legacy configuration. Since the Router's creation, the style in Angular
has evolved quite a bit. This commit eliminates and cleans up some
unnecessary comlicated code paths related to the router
constructor/factory.

Note that there are edits to the `setupTestingRouter` that could be seen
as breaking. However, it is not for several reasons:

1. The function is documented as a factory function. If used as
   documented, the parameters should match what's available in DI
2. The function is totally unused by the Router itself and is not used
   in g3 either. I believe it was made publicApi by an error when
   updating documentation annotations long ago.

PR Close #48215
2022-12-01 09:38:26 -08:00
.circleci build(bazel): remaining AIO Bazel migration fixes 2022-11-22 13:51:16 -07:00
.devcontainer docs: fixed typos (#47008) 2022-08-01 11:15:54 -07:00
.github build: update all non-major dependencies (#48271) 2022-11-30 09:29:26 -08:00
.husky build: remove unnecessary husky gitignore file (#42870) 2021-07-19 17:31:55 -07:00
.ng-dev build: update ng-dev configuration to account for caretaker note label change (#47987) 2022-11-07 09:25:40 -08:00
.vscode build: update recommended launch vscode config to use proper bazel dist path (#47831) 2022-10-24 10:42:21 +02:00
.yarn build: update to yarn v1.22.17 (#44150) 2021-11-15 11:19:05 -08:00
aio build: update all non-major dependencies (#48271) 2022-11-30 09:29:26 -08:00
devtools build: update cross-repo dependencies to latest stable version (#48216) 2022-11-29 12:29:46 -08:00
docs build: update comp labels to be area instead (#47750) 2022-10-12 18:10:35 +00:00
goldens refactor(router): Eliminate constructor parameters in Router class (#48215) 2022-12-01 09:38:26 -08:00
integration build: update cross-repo dependencies to latest stable version (#48216) 2022-11-29 12:29:46 -08:00
modules build: update dev-infra packages and account for build-tooling split from ng-dev (#46976) 2022-08-02 09:37:37 -07:00
packages refactor(router): Eliminate constructor parameters in Router class (#48215) 2022-12-01 09:38:26 -08:00
scripts build(bazel): fix aio payload test to work with bazel output 2022-11-22 13:51:16 -07:00
third_party build(bazel): merge aio/tools/defaults.bzl and tools/defaults.bzl 2022-11-22 13:51:16 -07:00
tools build: hide --loader warning when ESM import patch is installed (#48282) 2022-11-29 09:39:26 -08:00
.bazelignore build(bazel): create AIO example playgrounds for manual testing 2022-11-22 13:51:16 -07:00
.bazelrc build(bazel): fix AIO deployment script (#48188) 2022-11-23 14:00:03 +00:00
.bazelversion build: update to bazel v5 for new runfiles API used in dev-infra (#45407) 2022-03-21 16:55:36 -07:00
.clang-format feat(tooling): Add a .clang-format for automated JavaScript formatting. 2015-04-02 08:44:34 -07:00
.editorconfig build: use https link to editorconfig.org in .editorconfig (#27664) 2018-12-18 09:30:09 -08:00
.gitattributes build: cleanup .gitattributes file and remove outdated CRLF attribute (#46513) 2022-06-28 13:38:27 -07:00
.gitignore ci: fix stamping for builds performed in CI (#45147) 2022-02-25 19:14:05 +00:00
.gitmessage build: clean up references to old master branch (#45856) 2022-05-04 16:23:33 -07:00
.mailmap build: add a Git .mailmap with my new name (#19550) 2017-10-09 14:35:30 -07:00
.npmrc build: rely on engines to prevent using npm for dependency install (#41477) 2021-04-07 12:05:01 -07:00
.nvmrc feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
.prettierrc ci: use prettier to format yml files (#42136) 2021-05-19 11:20:20 -07:00
.pullapprove.yml build(bazel): fix linting errors 2022-11-22 13:51:16 -07:00
.yarnrc build: update to yarn v1.22.17 (#44150) 2021-11-15 11:19:05 -08:00
browser-providers.conf.js ci: enable Android 12 for tests on CI (#45926) 2022-05-09 11:26:10 -07:00
BUILD.bazel build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
CHANGELOG.md release: cut the v15.1.0-next.1 release 2022-11-30 12:37:21 -08:00
CHANGELOG_ARCHIVE.md docs: move old changelog entries to a separate file (#45638) 2022-04-14 15:01:21 -07:00
CODE_OF_CONDUCT.md build: update CODE_OF_CONDUCT.md to match the content of angular/.github 2022-09-15 17:26:46 +00:00
CONTRIBUTING.md docs: fix grammar issues in various markdown files (#47200) 2022-08-22 10:54:56 -07:00
gulpfile.js build: remove the unused source-map-test (#46518) 2022-06-27 15:42:43 -07:00
karma-js.conf.js build: move jasmine seed generation logic to karma config (#46798) 2022-07-12 15:54:51 +00:00
LICENSE build: bump license year (#44590) 2022-01-04 12:05:25 -08:00
package.json release: cut the v15.1.0-next.1 release 2022-11-30 12:37:21 -08:00
packages.bzl build(bazel): fix missing dgeni dependencies 2022-11-22 13:51:16 -07:00
README.md docs(core): Improved README.md (#47700) 2022-10-11 15:58:38 +00:00
renovate.json build: update comp labels to be area instead (#47750) 2022-10-12 18:10:35 +00:00
SECURITY.md build: update SECURITY.md to match the content of angular/.github 2022-08-30 18:14:11 +00:00
tsconfig-tslint.json refactor(devtools): run ng-dev format on angular devtools files 2022-01-26 16:35:30 -05:00
tslint.json build(bazel): fix linting errors 2022-11-22 13:51:16 -07:00
WORKSPACE build: update all non-major dependencies (#48271) 2022-11-30 09:29:26 -08:00
yarn.bzl build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
yarn.lock build: update all non-major dependencies (#48271) 2022-11-30 09:29:26 -08:00
yarn.lock.readme.md build: clean up references to old master branch (#45856) 2022-05-04 16:23:33 -07:00

Angular - The modern web developer's platform.

angular-logo
Angular is a development platform for building mobile and desktop web applications
using Typescript/JavaScript and other languages.

www.angular.io

Contributing Guidelines · Submit an Issue · Blog

CI status   Angular on npm   Discord conversation

InsightsSnapshot


Documentation

Get started with Angular, learn the fundamentals and explore advanced topics on our documentation website.

Advanced

Development Setup

Prerequisites

Setting Up a Project

Install the Angular CLI globally:

npm install -g @angular/cli

Create workspace:

ng new [PROJECT NAME]

Run the application:

cd [PROJECT NAME]
ng serve

Angular is cross-platform, fast, scalable, has incredible tooling, and is loved by millions.

Quickstart

Get started in 5 minutes.

Ecosystem

angular ecosystem logos

Changelog

Learn about the latest improvements.

Upgrading

Check out our upgrade guide to find out the best way to upgrade your project.

Contributing

Contributing Guidelines

Read through our contributing guidelines to learn about our submission process, coding rules, and more.

Want to Help?

Want to report a bug, contribute some code, or improve the documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues labeled as help wanted or good first issue.

Code of Conduct

Help us keep Angular open and inclusive. Please read and follow our Code of Conduct.

Community

Join the conversation and help the community.

Love Angular badge

Love Angular? Give our repo a star ⬆️.