docs: update cheatsheet import lines (#9614)
This commit is contained in:
parent
c03e1f2f59
commit
c369bc747d
|
@ -2,7 +2,7 @@
|
||||||
Bootstrapping
|
Bootstrapping
|
||||||
@cheatsheetIndex 0
|
@cheatsheetIndex 0
|
||||||
@description
|
@description
|
||||||
{@target ts}`import {bootstrap} from 'angular2/platform/browser';`{@endtarget}
|
{@target ts}`import { bootstrap } from '@angular/platform-browser-dynamic';`{@endtarget}
|
||||||
{@target js}Available from the `ng.platform.browser` namespace{@endtarget}
|
{@target js}Available from the `ng.platform.browser` namespace{@endtarget}
|
||||||
{@target dart}`import 'package:angular2/platform/browser.dart';`{@endtarget}
|
{@target dart}`import 'package:angular2/platform/browser.dart';`{@endtarget}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Built-in directives
|
Built-in directives
|
||||||
@cheatsheetIndex 2
|
@cheatsheetIndex 2
|
||||||
@description
|
@description
|
||||||
{@target ts}`import {NgIf, ...} from 'angular2/common';`{@endtarget}
|
{@target ts}`import {NgIf, ...} from '@angular/common';`{@endtarget}
|
||||||
{@target js}Available from the `ng.common` namespace{@endtarget}
|
{@target js}Available from the `ng.common` namespace{@endtarget}
|
||||||
{@target dart}Available using `platform_directives` in pubspec{@endtarget}
|
{@target dart}Available using `platform_directives` in pubspec{@endtarget}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Class decorators
|
Class decorators
|
||||||
@cheatsheetIndex 4
|
@cheatsheetIndex 4
|
||||||
@description
|
@description
|
||||||
{@target ts}`import {Directive, ...} from 'angular2/core';`{@endtarget}
|
{@target ts}`import {Directive, ...} from '@angular/core';`{@endtarget}
|
||||||
{@target js}Available from the `ng.core` namespace{@endtarget}
|
{@target js}Available from the `ng.core` namespace{@endtarget}
|
||||||
{@target dart}`import 'package:angular2/core.dart';`{@endtarget}
|
{@target dart}`import 'package:angular2/core.dart';`{@endtarget}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
Dependency injection configuration
|
Dependency injection configuration
|
||||||
@cheatsheetIndex 9
|
@cheatsheetIndex 9
|
||||||
@description
|
@description
|
||||||
{@target ts}`import {provide} from 'angular2/core';`{@endtarget}
|
|
||||||
{@target js}Available from the `ng.core` namespace{@endtarget}
|
|
||||||
{@target dart}`import 'package:angular2/core.dart';`{@endtarget}
|
{@target dart}`import 'package:angular2/core.dart';`{@endtarget}
|
||||||
|
|
||||||
@cheatsheetItem
|
@cheatsheetItem
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Class field decorators for directives and components
|
Class field decorators for directives and components
|
||||||
@cheatsheetIndex 7
|
@cheatsheetIndex 7
|
||||||
@description
|
@description
|
||||||
{@target ts}`import {Input, ...} from 'angular2/core';`{@endtarget}
|
{@target ts}`import {Input, ...} from '@angular/core';`{@endtarget}
|
||||||
{@target js}Available from the `ng.core` namespace{@endtarget}
|
{@target js}Available from the `ng.core` namespace{@endtarget}
|
||||||
{@target dart}`import 'package:angular2/core.dart';`{@endtarget}
|
{@target dart}`import 'package:angular2/core.dart';`{@endtarget}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Forms
|
Forms
|
||||||
@cheatsheetIndex 3
|
@cheatsheetIndex 3
|
||||||
@description
|
@description
|
||||||
{@target ts}`import {FORM_DIRECTIVES} from 'angular2/common';`{@endtarget}
|
{@target ts}`import {FORM_DIRECTIVES} from '@angular/common';`{@endtarget}
|
||||||
{@target js}Available from `ng.common.FORM_DIRECTIVES`{@endtarget}
|
{@target js}Available from `ng.common.FORM_DIRECTIVES`{@endtarget}
|
||||||
{@target dart}Available using `platform_directives` in pubspec{@endtarget}
|
{@target dart}Available using `platform_directives` in pubspec{@endtarget}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Routing and navigation
|
Routing and navigation
|
||||||
@cheatsheetIndex 10
|
@cheatsheetIndex 10
|
||||||
@description
|
@description
|
||||||
{@target ts}`import {RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS, ...} from 'angular2/router';`{@endtarget}
|
{@target ts}`import {provideRouter, RouteConfig, ROUTER_DIRECTIVES, ...} from '@angular/router';`{@endtarget}
|
||||||
{@target js}Available from the `ng.router` namespace{@endtarget}
|
{@target js}Available from the `ng.router` namespace{@endtarget}
|
||||||
{@target dart}`import 'package:angular2/router.dart';`{@endtarget}
|
{@target dart}`import 'package:angular2/router.dart';`{@endtarget}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue