AngularJS : why button hide after click? -
i trying open menu menu opening on button click .i able show menu option .but facing 1 issue button hide when menu option display.menu should display below button.i need show button menu when user click on button.i need menu should display below button
here code
http://codepen.io/anon/pen/rpaokj
var app = angular.module("ionicapp", ['ionic']); app.directive('custommenu', function () { return { restrict: 'a', scope: { }, link: function (scope, element, attr) { $(element).menu(); } } }) app.controller('cnt', function ($scope) { $scope.ismenuvisible = false; $scope.showmenu = function () { $scope.ismenuvisible = true; } })
Comments
Post a Comment