0

I am trying to open menu menu opening on button click .I am able to show menu option .But I am facing one issue my button is hide when menu option is display.menu should display below the button.I need to show button as well as menu when user click on button.I need menu should display below button

here is my 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;

    }
})

1 Answer 1

1

the button does not hide.

Try add margin-top: 30px; to .menu

http://codepen.io/anon/pen/XbdQgN

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.