Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9206877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:16:05+00:00 2026-06-18T00:16:05+00:00

i display some model entities with ng-repeat like and add a twitter bootstrap modal.

  • 0

i display some model entities with ng-repeat like and add a twitter bootstrap modal. The modal contains a form:

<div class="entity" ng-repeat="entity in model" ng-click="openModal()">
  <b>{{ model.title }}</b></br>
  <i>{{ model.content }}</i>
</div>
<!-- bootstrap modal ... -->
<div id="modal" ....

What is the best practise to open a bootstrap modal (which contain a form), and display the data of the entity in the form?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:16:06+00:00Added an answer on June 18, 2026 at 12:16 am

    First of all, pay attention that you have a bug in the example (entity.title not model.title).

    As for the modal, you can create a directive called modal-window and pass the entity to it.

    You can pass the entity through the openModal(entity), and have the modal window bind a property to it.

    Something like

    Controller:

    $scope.entity = {};
    $scope.showModal = false;
    
    $scope.openModal = function( entity ){
      $scope.entity = entity;
      $scope.showModal = true;
    }
    

    template:

    <modal-window entity="entity"></modal-window>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display some div's in a wrap. The div have same class
I'd like to display some data of my model within a status bar menu.
I want to display different forms in change_form depending on some model field's values.
I want to display some text on twitter/facebook when a link is clicked on
I like to display some (X)HTML content in a Qt application using QtWebKit. The
I need to display some child objects ( Items ) of an entity Request
I have the following entities in Entity Framework: public class School { public int
I display some text in the view: .... <%: model.Content %> .... my model.Content
I display some content in my view using this: <%= Html.Encode(Model.synopsis) %> The content
I would like to display some content located in my models in some of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.