Please provide the environment you discovered this bug in.
Tsconfig:
{
"extends": "./tsconfig.json",
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"noEmit": false,
"target": "es2020",
"module": "es2020",
"lib": [
"es2020",
"dom"
]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true,
"experimentalDecorators": true
},
"files": [],
"include": [
"src/**/*.ts"
]
}
Package.json
{
"name": "@example/basics",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"devDependencies": {
"@analogjs/astro-angular": "^0.1.0-beta.0",
"@angular-devkit/build-angular": "^14.0.0",
"@angular/animations": "^14.2.0",
"@angular/common": "^14.2.0",
"@angular/compiler": "^14.2.0",
"@angular/compiler-cli": "^14.2.0",
"@angular/core": "^14.0.0",
"@angular/platform-browser": "^14.0.0",
"@angular/platform-browser-dynamic": "^14.2.0",
"@angular/platform-server": "^14.0.0",
"@astrojs/react": "^1.2.0",
"@astrojs/svelte": "^1.0.1",
"@astrojs/tailwind": "^2.0.2",
"@astrojs/vue": "^1.1.0",
"astro": "^1.1.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rxjs": "^7.5.0",
"svelte": "^3.46.4",
"tailwindcss": "^3.0.24",
"tslib": "^2.0.0",
"vue": "^3.2.30",
"zone.js": "~0.11.4"
}
}
Which area/package is the issue in?
astro-angular
Description
When you create your component and you use with an Input from an Astro component, you will never receive the data from you angular component. The ngOnChange is not trigger at all. You also have an error from VS Code when you add your angular component into the Astro page.
This is the Git repo where you will be able to find the issue i encounter: https://github.com/GiuntaLucas/astro-multiframework-boilerplate
Please provide the exception or error you saw
This is the error message you will get from VS Code when you hover the angular component from Astro file.
Type '{ "client:visible": true; name: string; }' is not assignable to type 'IntrinsicAttributes'.
Property 'name' does not exist on type 'IntrinsicAttributes'
Other information
Also something i notice (maybe another topic), when you import your angular component whitout the ts extention, the client hydration is not working. I must import my angular component with this path (import { AngularHello } from "../components/hello.component.ts";) to be able to work front side.
I would be willing to submit a PR to fix this issue
bug