Comments (2)
I have the same issue too after upgrade to Frmawork7 1.6.4. In 1.6.0 everything is works well. Parent variable extracting broken in 1.6.2-1.6.4 versions.
// init template + context
var context = {images: images, date: '1970'};
var template = $('#myPage').html();
var compiledTemplate = Template7.compile(template);
var html = compiledTemplate(context);
mainView.router.loadContent(html);
<div class="page-content">
<b>{{date}}</b><br> <!-- date here is visible -->
{{#each images}}
{{../date}} <!-- and this date doesn't outputs :-( -->
{{this}}<br>
{{/each}}
<p>Here comes page content</p>
</div>
Here is fiddles:
- https://jsfiddle.net/qkwuL9c3/1/ (F7 1.6.2, Doesn't work)
- https://jsfiddle.net/qkwuL9c3/2/ (F7 1.6.4, Doesn't work)
- https://jsfiddle.net/qkwuL9c3/4/ (F7 1.6.0, Works well)
from template7.
I think this post refers to the problem in Framework7 (because the Versions are FW7 Versions not Templae7 Versions) - but it was closed because it was fixed in Template7 - so FW7 still has this problem as an open issue.
When will this be fixed in FW7 too please?
thanks and regards
Gerald
from template7.
Related Issues (20)
- For loop expression HOT 1
- How to Assign The Select Element Value In a Loop HOT 2
- Предложение: реализовать возможность в js_if подниматься на уровень "вверх", как в обычном if
- Thier is a way to create global nav or footer?
- escaping undefined and null
- Несколько предложений по расширению шаблонов
- Going back to "each"-context , after accessing parrent variable.
- How convert float (number) to string?
- variable helper HOT 1
- each use hasOwnProperty the inherited properties are not displayed.
- Parameterized partials
- how to use in expressjs?
- Can not compile
- js_if: проверка на свойства объекта, которое null
- QUESTION: Precompile templates HOT 1
- js not working in IOS? HOT 1
- #js_if: Cannot read property 'constructor' of undefined
- Feature {{@index + 1}} HOT 1
- issue in html attribute when value has spaces HOT 1
- Documentation website is down! HOT 1
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 template7.