Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var MenuCtrl = ['$scope', '$rootScope', '$filter', '$location', '$route', 'Data', function ($scope, $rootScope, $filter, $location, $route, Data) {
- $scope.menu = Data;
- $scope.selected = 0;
- $scope.setSelected = function (index) {
- $scope.selected = index;
- };
- $scope.$on('$viewContentLoaded', function () {
- alert('loaded');
- });
- }];
- **My HTML -Angular**
- <section ng-repeat="m in menu track by $index">
- <section class="item">
- <div class="item-destinations" ">
- <a ng-href="{{m.PageURL}}">{{m.Title}}-{{$index}}</a>
- </div>
- </section>
- **My jquery**
- $('.item-destinations').hover(
- function (e) {
- e.stopPropagation();
- $('.navExpand').stop().animate({
- top: "63"
- }, 300, function () {
- destMenuOpen = true;
- });
- },
- function (e) {
- e.stopPropagation();
- }
- );
- $(document).on({
- mouseenter: function (e) {
- e.stopPropagation();
- $('.navExpand').stop().animate({
- top: "63"
- }, 300, function () {
- destMenuOpen = true;
- });
- },
- mouseleave: function (e) {
- e.stopPropagation();
- }
- }, '.item-destinations');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement