You should also check for features.textbooks here before making the getTextbooks call. See campusController.js for an example of angular code checking a feature flag.