nobitagit / ng-material-floating-button

Material design floating menu with action buttons implemented as an Angularjs directive.
http://nobitagit.github.io/ng-material-floating-button/
MIT License
464 stars 130 forks source link

$location on click #59

Closed epileftro85 closed 7 years ago

epileftro85 commented 9 years ago

Hi, first of all want to thank you for this directive, i've implementing on a new project, but i can't make work with ng-href or ng-click to make a $location, this is what i have 'till now:

<nav mfb-menu position="tl" effect="slidein" label="Menú"
         active-icon="ion-edit" resting-icon="ion-grid" toggling-method="hover">
          <mfb-button ng-click="go({{button.link}})" icon="{{button.icon}}" label="{{button.label}}" ng-repeat="button in buttons"></mfb-button>
      </nav>
$scope.go = function ( path ) {
     $location.path( path );
};

or with the html ng-href="/#/foo"

epileftro85 commented 9 years ago

never mind it was a typo, sorry for the spam