Hello, I'm starting at AngularJS and I have some doubts ... One of them is this.
I have the following code:
angular.module('ValueSelling.controllers', []).controller('startController', function($scope, $routeParams) {
jQuery('body').removeClass("page--start page--filter page--favorites page--about page--search page--config page--help");
jQuery('body').addClass("page--start");
jQuery('.footer').slideUp();
}).controller('aboutController', function($rootScope, $location) {
jQuery('body').removeClass("page--start page--filter page--favorites page--about page--search page--config page--help");
jQuery('body').addClass("page--about");
jQuery('.footer').slideDown();
$rootScope.activetab = $location.path();
})
I would like to know how it would be possible to remove jQuery and switch to AngularJS. All the examples I see are through a click. In my case, it would be loading the controller.