angular-docs-cn/package.json
Peter Bacon Darwin d86be245b8 fix(angular1-router): add support for using the component helper
In Angular 1.5 there is a new helper method for creating component directives.
See https://docs.angularjs.org/guide/component for more information about components.

These kind of directives only match the `E` element form and the previously component
router only created HTML that matched directives that matched the `A` attribute form.

This commit changes the `<ng-outlet>` directive so that it generates custom HTML
elements rather divs with custom attributes to trigger the relevant component to
appear in the DOM.

Going forward, Angular 1.5 users are encouraged to create their router components
using the following style:

```
myModule.componnet('component-name', {
  // component definition object
});
```

Closes angular/angular.js#13860
Closes #6076
Closes #5278

BREAKING CHANGE:

The component router now creates custom element HTML rather than custom attribute
HTML, in order to create a new component. So rather than

```html
<div custom-component></div>
```

it now creates

```html
<custom-component></custom-component>
```

If you defined you router components using the `directive()` helper and
specified the `restrict` properties such that element matching was not allowed,
e.g. `restrict: 'A'` then these components will no longer be instantiated
by the component router and the outlet will be empty.

The fix is to include `E` in the `restrict` property.

`restrict: 'EA'`

Note that this does not affect directives that did not specify the `restrict`
property as the default for this property is already `EA`.
2016-02-08 16:18:13 -08:00

125 lines
4.4 KiB
JSON

{
"name": "angular-srcs",
"version": "2.0.0-beta.3",
"branchPattern": "2.0.*",
"description": "Angular 2 - a web framework for modern web apps",
"homepage": "https://github.com/angular/angular",
"bugs": "https://github.com/angular/angular/issues",
"contributors": [
"Alex Eagle <alexeagle@google.com>",
"Chirayu Krishnappa <chirayu@google.com>",
"Jeff Cross <crossj@google.com>",
"Matias Niemela <matsko@google.com>",
"Misko Hevery <misko@google.com>",
"Rado Kirov <radokirov@google.com>",
"Tobias Bosch <tbosch@google.com>",
"Victor Savkin <vsavkin@google.com>",
"Yegor Jbanov <yjbanov@google.com>",
"Jeremy Elbourn <jelbourn@google.com>"
],
"license": "MIT",
"engines": {
"node": ">= 5.4.1 < 6"
},
"repository": {
"type": "git",
"url": "https://github.com/angular/angular.git"
},
"scripts": {
"preinstall": "node tools/analytics/build-analytics start install npm3-install && node tools/analytics/build-analytics start install npm-preinstall && node tools/npm/check-node-modules && node tools/analytics/build-analytics success install npm-preinstall && node tools/analytics/build-analytics start install npm-install-net",
"postinstall": "node tools/analytics/build-analytics success install npm-install-net && node tools/analytics/build-analytics start install npm-postinstall && node tools/npm/copy-npm-shrinkwrap && node tools/chromedriverpatch.js && webdriver-manager update && bower install && gulp pubget.dart && tsd reinstall --overwrite --clean --config modules/angular2/tsd.json && tsd reinstall --overwrite --clean --config tools/tsd.json && tsd reinstall --overwrite --config modules/angular1_router/tsd.json && node tools/analytics/build-analytics success install npm-postinstall && node tools/analytics/build-analytics success install npm3-install",
"build": "node --max-old-space-size=2048 ./node_modules/.bin/gulp build.js",
"test": "gulp test.all.js && gulp test.all.dart"
},
"dependencies": {
"es6-promise": "^3.0.2",
"es6-shim": "^0.33.3",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.0",
"zone.js": "0.5.13"
},
"devDependencies": {
"angular": "^1.5.0",
"angular-animate": "^1.5.0",
"angular-mocks": "^1.5.0",
"base64-js": "^0.0.8",
"bower": "^1.3.12",
"broccoli": "^0.16.9",
"broccoli-funnel": "^1.0.1",
"broccoli-slow-trees": "1.x.x",
"broccoli-stew": "^0.2.1",
"broccoli-writer": "^0.1.1",
"browserify": "^10.2.4",
"browserstacktunnel-wrapper": "^1.4.2",
"canonical-path": "0.0.2",
"chokidar": "^1.1.0",
"clang-format": "^1.0.32",
"conventional-changelog": "^0.2.1",
"firefox-profile": "^0.3.4",
"fs-extra": "^0.26.3",
"glob": "^4.0.6",
"gulp": "^3.8.8",
"gulp-autoprefixer": "^3.1.0",
"gulp-clang-format": "^1.0.23",
"gulp-concat": "^2.5.2",
"gulp-connect": "^2.3.1",
"gulp-gzip": "^1.2.0",
"gulp-insert": "^0.5.0",
"gulp-load-plugins": "^1.0.0",
"gulp-rename": "^1.2.0",
"gulp-replace": "^0.5.3",
"gulp-sass": "^2.0.4",
"gulp-shell": "^0.5.1",
"gulp-sourcemaps": "^1.6.0",
"gulp-tslint": "^3.5.0",
"gulp-typescript": "^2.10.0",
"gulp-uglify": "^1.2.0",
"hash-files": "^1.0.0",
"jasmine": "^2.4.1",
"jpm": "1.0.0",
"js-yaml": "^3.2.7",
"karma": "^0.13.17",
"karma-browserstack-launcher": "^0.1.9",
"karma-chrome-launcher": "^0.2.0",
"karma-dart": "^0.3.0",
"karma-jasmine": "^0.3.6",
"karma-sauce-launcher": "^0.3.0",
"karma-sourcemap-loader": "^0.3.6",
"lodash": "^3.10.1",
"madge": "0.5.0",
"merge": "^1.2.0",
"merge2": "^0.3.5",
"minimatch": "^3.0.0",
"minimist": "^1.2.0",
"mock-fs": "^3.6.0",
"node-uuid": "1.4.x",
"on-headers": "^1.0.0",
"parse5": "1.3.2",
"protractor": "^3.0.0",
"proxy-middleware": "^0.15.0",
"q": "^1.0.1",
"react": "^0.14.0",
"rewire": "^2.3.3",
"run-sequence": "^1.1.0",
"selenium-webdriver": "^2.47.0",
"semver": "^5.1.0",
"sorted-object": "^1.0.0",
"source-map": "^0.3.0",
"source-map-loader": "^0.1.5",
"strip-ansi": "^2.0.1",
"symlink-or-copy": "^1.0.1",
"systemjs": "0.18.10",
"systemjs-builder": "^0.10.3",
"through2": "^0.6.5",
"ts2dart": "^0.7.22",
"ts-api-guardian": "0.0.2",
"tsd": "^0.6.5-beta",
"tslint": "^3.2.1",
"typescript": "^1.7.3",
"universal-analytics": "^0.3.9",
"webpack": "^1.12.6",
"which": "~1",
"yargs": "^3.31.0"
}
}