html - Angularjs bootstrap modal pop up not working -




i have about.html shows 6 images in each column. when click on individual profile new pop window should pop (open up) show background info of individual. bootstrap hard codes inside angularjs app. have been trying create angularjs modal pop shown:

<div class = "container">     <div class="row">        <div class="col-md-4 col-sm-6 portfolio-item">            <a href="#profile-1" class="portfolio-link" data-toggle="modal">            <div class="portfolio-hover">               <div class="portfolio-hover-content">                  <p class="p-hover">my profile...</p>                                           </div>                </div>                 <img src="images/pic1.jpg" class="img-responsive" alt=""> </a>                 <div class="portfolio-caption">                      <p class="text-muted">guitarist since 1977</p>           </div>      </div> </div> 

this should content on pop window once click on image of profile:

<modal id="profile-1">     <div class="modal">          <div class="container">                <div class="row">                  <div class="col-md-3 col-xs-12">                 <div class="modal-body">                  <img src="images/pic1.jpg" alt="">                 </div>                <div class=" col-xs-12 col-md-9">                <h6>consectetur adipisicing elit. </h6>                 <p>                 lorem ipsum dolor sit amet, consectetur adipisicing elit.                  </p>               <button ng-click="vm.closemodal('profile-1');">close</button>                </div>               </div>          </div>      </div> </modal> 

i have use controller code based on website:angularjs custom modal

 controller.js           `angular.module('routecontrollers', [])            .controller('aboutcontroller', function($scope)  {     function controller(modalservice) {        var vm = this;         vm.openmodal = openmodal;        vm.closemodal = closemodal;     initcontroller();     function initcontroller() {         //vm.bodytext = 'this text can updated in modal 1';    }             function openmodal(id){         modalservice.open(id);    }     function closemodal(id){         modalservice.close(id);    } } 

i've tried few ways think @ moment i'm confused. helpful tips lovely.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -