mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
c9bdf9bab1
As an ongoing effort to stabilize the NgOptimizedImage API before existing the Developer Preview, this commit renames the `rawSrc` attribute used for the NgOptimizedImage selector matching to `ngSrc`. The `rawSrcset` is also renamed to `ngSrcset` for consistency. The motivation for this change is to align the attribute name better with other built-in directives, such as `ngFor`, `ngIf`, `ngClass`, `ngStyle`, etc. Note: this is technically a breaking change, but since the NgOptimizedImage directive is in the Developer Preview mode, we land the change in a patch branch. PR Close #47362 PR Close #47396
- NgOptimizedImage directive testing
This folder contains a simple application that can be used as a playground for the NgOptimizedImage directive testing. You can run the following command to start the dev server:
yarn ibazel run packages/core/test/bundling/image-directive:devserver
There is also a set of e2e tests (powered by Protractor), which can be invoked by running:
yarn bazel test packages/core/test/bundling/image-directive:protractor_tests