0

アプリで angular-ui を使用しようとしましたが、1 つの小さな問題を解決できません。たとえば、アコーディオンを使ってみます。プランカーのようなクリーンなページではすべてうまく機能しますが、実際のアプリではクリックイベントが機能しません。モジュールに含める

    angular.module('moduleName', ['ui.bootstrap', 'myFilters', 'my1Services', 'my2Services'])

私のインクルード

 <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js"></script>
 <script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.5.0.js"></script>
 <script src="js/app.js"></script>
 <script src="js/services.js"></script>
 <script src="js/controllers.js"></script>
 <script src="js/filters.js"></script>
 <script src="js/directives.js"></script>
<script src="lib/angular/angular-resource.js"></script>

ヘッダーをクリックしてみます

<accordion-group heading="Static Header">
            This content is straight in the template.
</accordion-group>

しかし、何も起こりません。以下のコードは、ヘッダーをクリックして開く必要があります

<accordion-group heading="{{group.title}}" ng-repeat="group in groups">
            {{group.content}}
</accordion-group>

クリックが機能しないのはなぜですか? ありがとう

4

1 に答える 1

0

問題はスタイルにありました: 標準のブートストラップ スタイル 3.0 は、結合されたスタイル 2.3 では機能しません。例:

<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
于 2013-09-05T15:11:55.907 に答える