Skip to content

Commit

Permalink
changes in description
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshwarpatlolla committed Jun 24, 2015
1 parent 154f80c commit 8ff9431
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ angular.module('mainModuleName', ['ionic', 'ionic-toast']){
<button class="button button-block" ng-click="showToast()">Show Toast at top with close</button>
````

6) In your controller you have to define a function like below
6) In your controller you have to define a function like below to show the toast

````javascript
$scope.showToast = function(){
Expand All @@ -70,6 +70,15 @@ c) `stick` is the third argument, which takes either `true` or `false`.

d) `time` is the fourth argument, which takes time in milliseconds. If the value is greater than 5000, then it will be considered as 5000(5 seconds) only.

7) In your controller you have to define a function like below to hide the toast

````javascript
$scope.showToast = function(){
ionicToast.hide();
};
````


##Screen Shots:

Once you are successfully done with the above steps, you should be able to see the below screen shots.
Expand Down

0 comments on commit 8ff9431

Please sign in to comment.