Skip to content

Commit

Permalink
docs(ngComponentRouter): add deprecation notice and better install notes
Browse files Browse the repository at this point in the history
Yes, that contradicts itself.

Closes angular#14655
Closes angular#14717
  • Loading branch information
Narretz authored and petebacondarwin committed Jun 6, 2016
1 parent 6ec775e commit 86aff73
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
13 changes: 13 additions & 0 deletions docs/content/guide/component-router.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

# Component Router

<div class="alert alert-danger">
**Deprecation Notice:** This implementation of the Component Router (ngComponentRouter module) has been deprecated and will not receive further updates.
Alternatively, use the {@link ngRoute} module or community developed projects (e.g. [ui-router](https://github.com/angular-ui/ui-router)).
</div>

This guide describes the new Component Router for AngularJS 1.5.

<div class="alert alert-info">
Expand Down Expand Up @@ -482,6 +487,14 @@ Just like any Angular application, we load the JavaScript files into our `index.
<script src="/app/app.js"></script>
```

You also need to include ES6 shims for browsers that do not support ES6 code (Internet Explorer,
iOs < 8, Android < 5.0, Windows Mobile < 10):
```html
<!-- IE required polyfills, in this exact order -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.33.3/es6-shim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.20/system-polyfills.js"></script>
<script src="https://npmcdn.com/angular2/es6/dev/src/testing/shims_for_IE.js"></script>
```

## Create the `app` module

Expand Down
21 changes: 20 additions & 1 deletion src/ngComponentRouter/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @name ngComponentRouter
* @installation
*
* <div class="alert alert-danger">
* **Deprecation Notice:** This implementation of the Component Router has been deprecated and will not receive further updates.
* Alternatively, use the {@link ngRoute} module or community developed projects (e.g. [ui-router](https://github.com/angular-ui/ui-router)).
* </div>
* Currently, the **Component Router** module must be installed via `npm`, it is not yet available
* on Bower or the Google CDN.
*
Expand All @@ -15,7 +20,8 @@
* <script src="/node_modules/@angular/router/angular1/angular_1_router.js"></script>
*```
*
* You also need to include ES6 shims to support running on Internet Explorer:
* You also need to include ES6 shims for browsers that do not support ES6 code (Internet Explorer,
iOs < 8, Android < 5.0, Windows Mobile < 10):
* ```html
* <!-- IE required polyfills, in this exact order -->
* <script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.33.3/es6-shim.min.js"></script>
Expand All @@ -36,6 +42,7 @@
* @ngdoc type
* @name Router
* @description
* @deprecated This implementation of the Component Router has been deprecated and should not be used anymore.
* A `Router` is responsible for mapping URLs to components.
*
* * Routers and "Routing Component" instances have a 1:1 correspondence.
Expand All @@ -51,6 +58,7 @@
* @ngdoc type
* @name ChildRouter
* @description
* @deprecated This implementation of the Component Router has been deprecated and should not be used anymore.
*
* This type extends the {@link Router}.
*
Expand All @@ -63,6 +71,7 @@
* @ngdoc type
* @name RootRouter
* @description
* @deprecated This implementation of the Component Router has been deprecated and should not be used anymore.
*
* This type extends the {@link Router}.
*
Expand All @@ -75,6 +84,8 @@
* @ngdoc type
* @name ComponentInstruction
* @description
* @deprecated This implementation of the Component Router has been deprecated and should not be used anymore.
*
* A `ComponentInstruction` represents the route state for a single component. An `Instruction` is
* composed of a tree of these `ComponentInstruction`s.
*
Expand All @@ -88,6 +99,7 @@
* @ngdoc type
* @name RouteDefinition
* @description
* @deprecated This implementation of the Component Router has been deprecated and should not be used anymore.
*
* Each item in the **RouteConfig** for a **Routing Component** is an instance of
* this type. It can have the following properties:
Expand All @@ -102,6 +114,8 @@
* @ngdoc type
* @name RouteParams
* @description
* @deprecated This implementation of the Component Router has been deprecated and should not be used anymore.
*
* A map of parameters for a given route, passed as part of the {@link ComponentInstruction} to
* the Lifecycle Hooks, such as `$routerOnActivate` and `$routerOnDeactivate`.
*/
Expand All @@ -112,13 +126,15 @@
* @priority 400
* restrict: AE
* @description
* @deprecated This implementation of the Component Router has been deprecated and should not be used anymore.
*
* The directive that identifies where the {@link Router} should render its **Components**.
*/

/**
* @name ngLink
* @description
* @deprecated This implementation of the Component Router has been deprecated and should not be used anymore.
*
* Lets you create links to different views, automatically generating the `href`.
*
Expand All @@ -135,6 +151,8 @@
* @ngdoc service
* @name $rootRouter
* @description
* @deprecated This implementation of the Component Router has been deprecated and should not be used anymore.
*
* The singleton instance of the {@link RootRouter} type, which is associated
* with the top level {@link $routerRootComponent}.
*/
Expand All @@ -144,6 +162,7 @@
* @ngdoc service
* @name $routerRootComponent
* @description
* @deprecated This implementation of the Component Router has been deprecated and should not be used anymore.
*
* The top level **Routing Component** associated with the {@link $rootRouter}.
*/

0 comments on commit 86aff73

Please sign in to comment.