Is that what you want?

<html ng-app>
>   <head>
>     <script src="
> https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js
> "></script>
>   </head>
>   <body>
>     <div>
>       <button type="button" ng-click="check = !check">Click me!</button>
>       <p ng-show="check">Test</p>
>     </div>
>   </body>
> </html>


p.s.: I don't think it's a good idea to do what I just did. I think the
controller should take care of the logic (changing check value on click).

On Sun, Jun 14, 2015 at 3:56 AM, Joel Yek <[email protected]> wrote:

> need some help how do i make it something like this but instead of
> checkbox i press a button then it shows the content
> http://codepen.io/anon/pen/qdXBPr
>
> <html ng-app>
>>
>>   <head>
>>
>>     <script src="
>>> https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js
>>> "></script>
>>
>>   </head>
>>
>>   <body>
>>
>>     <div>
>>
>>       <input  type="checkbox" ng-model="check">
>>
>>       <p ng-show="check">Test</p>
>>
>>     </div>
>>
>>   </body>
>>
>> </html>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to