Angular UI-Bootstrap carousel not working

后端 未结 2 896
北恋
北恋 2021-01-23 19:17

I want to make a carousel using angular and Bootstrap but it simply doesn\'t work. I can\'t see the carousel at all and I see angular\'s brackett.

In other words, my res

2条回答
  •  不思量自难忘°
    2021-01-23 19:26

    You can see a working sample in plunker link below.

    Plunker

    
        
             
              
        
    
    

    You are using the incorrect directives for the angular-ui.

    Also, you are not defining the controller properly:

    var app = angular.module('app', ['ui.bootstrap']);
    app.controller('CarouselDemoCtrl', CarouselDemoCtrl);
    

    UPDATE

    Complete working sample, even saved as a html file on your system.

    
    
    
    
    
    
        
    
    
    
    
    Write your name here Hi {{name}} Those are your photos:

提交回复
热议问题