-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(angular): add support for Angular 16
- Loading branch information
1 parent
5f48d3c
commit 2f74753
Showing
11 changed files
with
5,607 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions
21
system-tests/projects/angular-15/src/app/components/standalone.component.cy.ts
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
system-tests/projects/angular-15/src/app/components/standalone.component.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "angular-16", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"ng": "ng", | ||
"start": "ng serve", | ||
"build": "ng build", | ||
"watch": "ng build --watch --configuration development", | ||
"test": "ng test" | ||
}, | ||
"dependencies": { | ||
"@angular/animations": "^16.0.0-next.1", | ||
"@angular/common": "^16.0.0-next.1", | ||
"@angular/compiler": "^16.0.0-next.1", | ||
"@angular/core": "^16.0.0-next.1", | ||
"@angular/forms": "^16.0.0-next.1", | ||
"@angular/platform-browser": "^16.0.0-next.1", | ||
"@angular/platform-browser-dynamic": "^16.0.0-next.1", | ||
"@angular/router": "^16.0.0-next.1", | ||
"rxjs": "~7.8.0", | ||
"tslib": "^2.3.0", | ||
"zone.js": "~0.12.0" | ||
}, | ||
"devDependencies": { | ||
"@angular-devkit/build-angular": "^16.0.0-next.2", | ||
"@angular/cli": "~16.0.0-next.2", | ||
"@angular/compiler-cli": "^16.0.0-next.1", | ||
"typescript": "~4.9.4" | ||
}, | ||
"projectFixtureDirectory": "angular" | ||
} |
14 changes: 14 additions & 0 deletions
14
system-tests/projects/angular-16/src/app/components/signals.component.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { SignalsComponent } from './signals.component' | ||
|
||
describe('SiganlsComponent', () => { | ||
it('can mount a signals component', () => { | ||
cy.mount(SignalsComponent) | ||
}) | ||
|
||
it('can increment the count using a signal', () => { | ||
cy.mount(SignalsComponent) | ||
cy.get('span').contains(0) | ||
cy.get('button').click() | ||
cy.get('span').contains(1) | ||
}) | ||
}) |
14 changes: 14 additions & 0 deletions
14
system-tests/projects/angular-16/src/app/components/signals.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Component, signal } from '@angular/core' | ||
|
||
@Component({ | ||
standalone: true, | ||
selector: 'app-signals', | ||
template: `<span>{{ count() }}</span> <button (click)="increment()">+</button>`, | ||
}) | ||
export class SignalsComponent { | ||
count = signal(0) | ||
|
||
increment (): void { | ||
this.count.update((_count: number) => _count + 1) | ||
} | ||
} |
Oops, something went wrong.