1
Hello, I’m starting at Angularjs and I’m having 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 the case of mine, it would be when loading the controller.