1

I am very new to angular I have servicenow experience, I need one help in incident form I have one angular button (Create this incident) once user click the button that button should be hide or read only any code help code :

<div>
  <button class="btn btn-primary" ng-click="$root.trigger()">Create this ticket</button>
  <hr/>
  <h3 class="show-font"><b>OPTIONAL INFORMATION</b></h3>

  <!--<p class="text-muted small">This will help us understand who should be looking into your ticket.</p>-->
</div>
1

1 Answer 1

1

Demo

create one variable make it default true;

isShow=true;

give button if condition in element

ng-if="isShow"

when you clickked give click function to html ng-click="test()"

change it

test(){
   this.isShow=!this.isShow;
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.