... so say we have a class 'inactive' - we simply set the $scope.active variable to 'inactive' and voila, we the class is set in the view.
確定! 回上一頁