Coder Social home page Coder Social logo

Comments (2)

luismanuel001 avatar luismanuel001 commented on July 30, 2024

Here the thing is that this is the way it was implemented before. On the mail-merge.js code, the previous developer only compiles the previews on view load, and in some very specific instances where he manually called a refresh method that attempted to recompile the preview sections.

I haven't touched any of this because to be honest it is really bad coding on my opinion, and it uses a bunch of manual DOM manipulation through jQuery to achieve the current behavior. In my opinion all this is unnecessary and a better implementation could have being developed using more angular ways, using angular native bindings to update the previews as the model (form variables) changed, and without even using jQuery (which is a bad practice) at all.

Again all this was out of the scope of my project, and I could try to spend some time if needed on this, but I have already spent a week more than my estimates, and this will just add a lot more time just to pretty much rewrite the mail-merge component almost completely, and I was hoping to finish this up today since I need to move forward with other projects next week.

from the-app.

distributev avatar distributev commented on July 30, 2024

I don't understand. I tested this initially and it was interpolating while I type real time just fine (including onload first time).

Just took again the original old code now and I see that it is working fine all the above form fields get interpolated while I type real time just fine.

Feel free to git clone yourself the old repository and see it working fine.

from the-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.