GithubHelp home page GithubHelp logo

associate with model about ng-markdown HOT 8 CLOSED

ralyodio avatar ralyodio commented on June 29, 2024
associate with model

from ng-markdown.

Comments (8)

balthazar avatar balthazar commented on June 29, 2024

To bind a value with the directive, you only need the content attribute, so remove the ng-model one.

from ng-markdown.

ralyodio avatar ralyodio commented on June 29, 2024

When I submit the form, that field is empty.

from ng-markdown.

balthazar avatar balthazar commented on June 29, 2024

Okay I see, I will create a new release this night or tomorrow to fix the problem, bad choice to not use the ng-model at first, sorry for that

from ng-markdown.

ralyodio avatar ralyodio commented on June 29, 2024

also, it would be cool if I could add some attributes for the generated <textarea> as you can see in my original, I have a few angular boolean attributes like placeholder="Enter job description..." ng-minlength="4" required mongoose-error. I need to surface these errors back to the field in which the data is collected.

Thanks a bunch. I like your editor, took me awhile to find it.

from ng-markdown.

ralyodio avatar ralyodio commented on June 29, 2024

Apercu, thanks, what about passing extra attributes to the <textarea>? Angular has a lot of nifty form handling logic that I'd like to take advantage of.

from ng-markdown.

balthazar avatar balthazar commented on June 29, 2024

Since the textarea replace the markdown markup, each attribute is copied, I've tested it using the placeholder one, and I also remember to have seen every class relative to form validation like ng-dirty.

Have you some particular environnement that could break this logic ?

from ng-markdown.

balthazar avatar balthazar commented on June 29, 2024

Sorry, the issue was automatically closed since I've deploy the new release to the master branch, let me know if you have still the problems.

from ng-markdown.

ralyodio avatar ralyodio commented on June 29, 2024

Works like a charm now. thank you.

from ng-markdown.

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.