mirror of
				https://github.com/KevinMidboe/vue-js-modal.git
				synced 2025-10-29 18:00:20 +00:00 
			
		
		
		
	Update README.md
This commit is contained in:
		
							
								
								
									
										19
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								README.md
									
									
									
									
									
								
							| @@ -57,6 +57,25 @@ methods: { | |||||||
|   } |   } | ||||||
| } | } | ||||||
| ``` | ``` | ||||||
|  | --- | ||||||
|  |  | ||||||
|  | You can easily send data into the modal: | ||||||
|  |  | ||||||
|  | ```vue | ||||||
|  | this.$modal.show('hello-world', { foo: 'bar' }) | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | And receive it on `beforeOpen` event: | ||||||
|  |  | ||||||
|  | ```vue | ||||||
|  | <modal name="hello-world" @before-open="beforeOpen"/> | ||||||
|  | ... | ||||||
|  | methods: { | ||||||
|  |   beforeOpen (event) { | ||||||
|  |     console.log(event.params.foo); | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | ``` | ||||||
|  |  | ||||||
| ### SSR | ### SSR | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user