We can make a button behave like a toggling button by making a directive in AngularJS. It is very simple. You just need to bind the attribute and then check the condition.
First create a simple HTML :-
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="css/index.css">
- <link rel="stylesheet" type="text/css" href="css/myApp.css">
- <title>Hello World</title>
- </head>
No comments:
Post a Comment