Questions tagged [ractivejs]

Ractive.js is a non-opinionated JavaScript library for building reactive user interfaces.

Ractive.js is a template-driven UI JavaScript library for building reactive user interfaces in a way that doesn't force you into a particular framework's way of thinking. Its features include:

  • Data-binding, with a beautiful declarative syntax
  • Event handling that doesn't make you frustrated
  • Flexible and performant animations and transitions

...among many others. It takes a radically different approach to DOM manipulation - one that saves both you and the browser unnecessary work.

Home page: ractive.js.org.

432 questions
0
votes
1 answer

RactiveJS doesn't update all vars on set or update

I have this: {{#config.buildings:building}}
Eduard
  • 3,395
  • 8
  • 37
  • 62
0
votes
1 answer

How to update partials

Hi there RactiveJS users, I'm new here and I'm very excited using RactiveJS but, I came up to wonder if I can update the template / data inside a Ractive instance . I have the following modal window:
0
votes
1 answer

RactiveJS: how can I test equality in a template expression?

I'm using a Ractive.JS binding: var alertsBinding = new Ractive({ el: '.alerts', template: alertsTemplate, data: { alerts: alerts, selectedAlertID: null } }); The template uses a template expression to detect if an…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
0
votes
1 answer

Why does my component not get its parents data unless specified in RactiveJS

I have created a Component that I call in a parent, but upon trying to get the value in my Component through a keypath function it is empty. Now unless I call this keypath directly in my template for the Component, it doesn't seem to exist even…
Andrew Smith
  • 1,224
  • 6
  • 9
0
votes
1 answer

Restrict usage of scripts defined outside of RequireJS scope

I have a problem with scopes (global variables/namespaces) that i just can't fix. The thing is that I have some legacy code on a project in which i added new functionalities using Require.js. This legacy code is loaded using standard