코드에 문제가 있습니다. 화살표가 가리키는 "NotesText"를 숨기고 "NotesText"화살표를 표시 한 후 가리켜 야합니다. 이 일이 일어날 수있는 길을 찾을 수 없습니다. 제발, 도와주세요. 기본적으로, 내가 필요AngularJS - 글리프콘이있는 화살표 아이콘 표시 및 숨기기
내가 표시하거나이 내가 가진 무엇
숨길 필요가있는 경우 화살표의 방향이 일치 변경하는 것입니다. 이는 모습입니다
<div id="notes-controller" class="collapse in" ng-controller="NotesController">
<fieldset>
<legend class="translatable" data-i18n="Notes">Notes</legend>
<form novalidate class="simple-form">
<div class="container col-md-12" ng-show="$ctrl.param.note.visible">
<textarea class="col-md-12" ng-readonly="$ctrl.param.note.readonly" type="text" id="Notes" ng-model="$ctrl.notes.note" ng-model-options="{ getterSetter: true }" />
</div>
</form>
</fieldset>
</div>
<span type="button" class="glyphicon glyphicon-chevron-up" data-toggle="collapse" data-target="#notes-controller"></span>
이것은 컨트롤러
angular.
module('notesText').
component('notesText', {
templateUrl: '/Scripts/test/notes-text/notes-text.template.html',
bindings: {
notes: '=',
param: '='
}
}).controller('NotesController', ['$scope', function ($scope) {
$scope.master = {};
$scope.update = function (user) {
$scope.master = angular.copy(user);
};
$scope.reset = function() {
$scope.user = angular.copy($scope.master);
};
$scope.reset();
}]);
:
이
은 HTML입니다
당신은 콘솔에서 오류를받을 수 있나요? –
cud u 예상되는 출력은 무엇입니까? – Iceman
@Iceman Alvaro는 다음과 같이 예상합니다. http://i.stack.imgur.com/tEYm1.png –