nohros / nsPopover

Popover dialogs for angularjs applications.
MIT License
126 stars 107 forks source link

TypeError: triangle.css is not a function #85

Closed kilianc closed 9 years ago

kilianc commented 9 years ago
TypeError: triangle.css is not a function
    at move (nsPopover.js:329)
    at nsPopover.js:114
    at angular.js:16299
    at completeOutstandingRequest (angular.js:4924)
    at angular.js:5312

angular 1.4

mikekoro commented 9 years ago

Just include <div class="triangle"></div> in your template

<script type="text/ng-template" id="menu">

        <div class="triangle"></div>

        <div class="ns-popover-tooltip">

          <ul>

            <li ng-repeat="item in items"><a>{{item.name}}</a></li>

          </ul>

        </div>

      </script>
kilianc commented 9 years ago

oh ok, we need to update the examples then

eduardoinnorway commented 9 years ago

Or why not update the code so "triangle" is optional

kilianc commented 9 years ago

@eduardoinnorway yeah, forcing classes on us is not optimal :D

nohros commented 9 years ago

triangle is optional, the TypeError is a bug introduced by the pull request that introduced the displayer.

lai32290 commented 7 years ago

I having this problem with angular 1.5.8