alonrbar / easy-template-x-angular-expressions Goto Github PK
View Code? Open in Web Editor NEWAngular expressions support for easy-template-x
License: MIT License
Angular expressions support for easy-template-x
License: MIT License
Hello,
I am not entirely familiar with Angular Expressions.
But do you guys happen to have an example, how I can manage to do this.
{#item.discount > 0}
{/}
{#item.discount = 5}
{/}
Sorry if this is not the correct place, but I'm having trouble trying to loop through an array like this
{# for (let i in rows) }
something: {rows[i].something}
{# something == “foo”}something is foo{/}
{/}
Is iteration by index not supported? If it is, maybe you can give an example of how to use it?
./node_modules/easy-template-x-angular-expressions/dist/es/easy-template-x-angular-expressions.js 35:57
Module parse failed: Unexpected token (35:57)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|
| function printPath(path) {
> const strPath = (path || []).map(p => `"${strEscape(p ?? '')}"`).join(", ");
| return `[ ${strPath} ]`;
| }
this is my package.json
:
"dependencies": {
// ...others,
"@craco/craco": "^6.1.2",
"antd": "^4.15.5",
"craco-antd": "^1.19.0",
"easy-template-x": "^2.1.0",
"easy-template-x-angular-expressions": "^0.1.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
"react-scripts": "^4.0.3",
"typescript": "^4.3.2"
},
It is failing to parse the nullish coalescing operator. Idk why. I use them in my react app.
Not sure how build works with dependencies. Any ideas to try?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.