Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
Angularjs - Modal dialog is shown in default page

I try to show a modal popup dialog from HTML template. Unfortunately HTML page isn't popup dialog but the HTML code is pasted to default HTML page. Below is the controller that I used.

app.controller('sortFiles', ['$scope', '$uibModal', function ($scope, $uibModal) {

    $scope.Action = function () {
         var modalInstance = $uibModal.open({
            animation: true,
            templateUrl: '/skanner/html/test.html',
            windowClass: 'center-modal',
             controller: ModalInstanceCtrl,
             controllerAs: '$ctrl',
            size: 'sm',
            //controllerAs: '$ctrl',
          resolve: {
                //items: function () {
                //    return $scope.items;
               // }
            }
    });

And HTML default page.

<div id="idDivButtonSort" style="width:200px;"  ng-controller="sortFiles" ng-mouseup="MouseUp()" ng-mousedown="MouseDown()" ng-click="Action()" >
    Sortuj
</div>

HTML code from test.html is not shown in modal dialog but is paste to top default page. Where is the problem?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Resolve the problem. 'bootstrap.min.css' was incorrect.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!