Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
9659e8db
Commit
9659e8db
authored
Jul 24, 2016
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Example component.
parent
e2b297b9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
public/js/app.js
+0
-0
resources/assets/js/app.js
+2
-0
resources/assets/js/components/Example.vue
+23
-0
No files found.
public/js/app.js
View file @
9659e8db
This source diff could not be displayed because it is too large. You can
view the blob
instead.
resources/assets/js/app.js
View file @
9659e8db
...
@@ -13,6 +13,8 @@ require('./bootstrap');
...
@@ -13,6 +13,8 @@ require('./bootstrap');
* the application, or feel free to tweak this setup for your needs.
* the application, or feel free to tweak this setup for your needs.
*/
*/
Vue
.
component
(
'example'
,
require
(
'./components/Example.vue'
));
var
app
=
new
Vue
({
var
app
=
new
Vue
({
el
:
'body'
el
:
'body'
});
});
resources/assets/js/components/Example.vue
0 → 100644
View file @
9659e8db
<
template
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-10 col-md-offset-1"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
Example Component
</div>
<div
class=
"panel-body"
>
I'm an example component!
</div>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
ready
()
{
console
.
log
(
'Component ready.'
)
}
}
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment