Comments (6)
Hi there,
Thank you for your input.
We will review this issue on our side.
Regards,
Wissam
from frontend-frameworks.
Hi @BechkoB,
I've forked our sample repo and set the angular core and Cloudinary Angular SDK to the latest version without any issues:
codesandbox.
Here are my dependencies:
"dependencies": {
"@angular/animations": "17.0.4",
"@angular/common": "17.0.4",
"@angular/compiler": "17.0.4",
"@angular/core": "17.0.4",
"@angular/forms": "17.0.4",
"@angular/platform-browser": "17.0.4",
"@angular/platform-browser-dynamic": "17.0.4",
"@angular/router": "17.0.4",
"@cloudinary/ng": "^2.0.0",
"@cloudinary/url-gen": "^1.13.0",
In addition, version 16 and up should be supported: https://github.com/cloudinary/frontend-frameworks/tree/master/packages/angular#version-support
If you're still having an issue, can you please set a code sandbox and share the link with us?
from frontend-frameworks.
Hi @atdcloud here is the sandbox which crashes too:
https://codesandbox.io/p/devbox/bold-goldstine-qz3rsr?file=%2Fsrc%2Fapp%2Fapp.component.html%3A19%2C62
it works when you use the tag like that : <advanced-image [cldImg]="img"> , but when try to get the image through a method it crashes because sends a hundreds of requests to cloudinary
from frontend-frameworks.
Hi @BechkoB, the advanced-image component does not support a function in cldImg. Please check this out as a reference:
from frontend-frameworks.
Hello, @jroco-cloudinary Thanks, so what could be the best solution to use it inside *ngFor , for example I have an array of categories and icons for them, where I need the icons from cloudinary ?
<mat-list>
<mat-list-item *ngFor="let category of categories$ | async">
<a>
<advanced-image [cldImg]="category.icon.publicId"></advanced-image>
<span class="flex-1 category-title">{{ category.title }}</span>
</a>
</mat-list-item>
</mat-list>
from frontend-frameworks.
Hi @BechkoB,
I modified your code and added elements that loop through an object. Please see here: https://2l2gln-4200.csb.app/
Basically, I declared an array of CloudinaryImage in the app.component.ts.
imgList: Array<{ myImage: CloudinaryImage }> = [];
constructor() {}
Then loop through it in the app.component.html.
<table>
<thead>
<th>My Images</th>
</thead>
<tbody>
<tr *ngFor="let category of imgList">
<advanced-image [cldImg]="category.myImage"></advanced-image>
</tr>
</tbody>
</table>
Please let me know if this works for you.
from frontend-frameworks.
Related Issues (20)
- Adding @cloudinary/ng package removes ng-reflect-* attributes HOT 9
- Cannot read properties of null (reading 'toURL') for cloudinary/ng HOT 6
- New issue for cloudinary/frontend-frameworks HOT 1
- @cloudinary/[email protected]" has incorrect peer dependency "@angular/common@^10.0.0 || ^11.0.0 || ^12.0.0". HOT 4
- Does responsive plugin work as it should in React SDK? HOT 6
- cannot use dpr(auto()) in React component (React SDK) HOT 2
- Create Ivy distribution HOT 6
- Errors building React app with @cloudinary/url-gen (eg: "export 'RoundCorners' (imported as 'RoundCorners') was not found in '@cloudinary/url-gen/actions/roundCorners' (module has no exports)") HOT 7
- Cannot find module '@cloudinary/url-gen' or its corresponding type declarations. HOT 2
- Quality transformation gets added twice (React SDK) HOT 1
- Vue 3 Support HOT 2
- Allow authentication token to be passed to React components HOT 4
- Uncaught promise TypeError: Cannot read properties of undefined (analyticsOptions) HOT 2
- Allow adding custom class to video tag HOT 6
- Angular advanced-image does not update width and height inputs on responsive design HOT 5
- AdvancedImage component responsiveness compromised with conflicting plugins in React (17 and 18) HOT 2
- Placeholder plugin not doing anything HOT 5
- import { audio } from "@cloudinary/url-gen/qualifiers/source"; missing in "@cloudinary/react": "^1.11.2", HOT 3
- Image flickering when using @cloudinary/react lazyload after adding alt text HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frontend-frameworks.