Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
2cbf1969
Commit
2cbf1969
authored
Mar 14, 2017
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert `<sidebar-tutorial>` from to a component
parent
61005b1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
app.js
src/sidebar/app.js
+1
-1
sidebar-tutorial.js
src/sidebar/directive/sidebar-tutorial.js
+5
-10
No files found.
src/sidebar/app.js
View file @
2cbf1969
...
@@ -147,6 +147,7 @@ module.exports = angular.module('h', [
...
@@ -147,6 +147,7 @@ module.exports = angular.module('h', [
.
component
(
'loginForm'
,
require
(
'./directive/login-form'
).
component
)
.
component
(
'loginForm'
,
require
(
'./directive/login-form'
).
component
)
.
component
(
'publishAnnotationBtn'
,
require
(
'./directive/publish-annotation-btn'
))
.
component
(
'publishAnnotationBtn'
,
require
(
'./directive/publish-annotation-btn'
))
.
component
(
'searchStatusBar'
,
require
(
'./directive/search-status-bar'
))
.
component
(
'searchStatusBar'
,
require
(
'./directive/search-status-bar'
))
.
component
(
'sidebarTutorial'
,
require
(
'./directive/sidebar-tutorial'
).
component
)
.
component
(
'shareDialog'
,
require
(
'./directive/share-dialog'
))
.
component
(
'shareDialog'
,
require
(
'./directive/share-dialog'
))
.
component
(
'timestamp'
,
require
(
'./directive/timestamp'
))
.
component
(
'timestamp'
,
require
(
'./directive/timestamp'
))
...
@@ -158,7 +159,6 @@ module.exports = angular.module('h', [
...
@@ -158,7 +159,6 @@ module.exports = angular.module('h', [
.
directive
(
'hOnTouch'
,
require
(
'./directive/h-on-touch'
))
.
directive
(
'hOnTouch'
,
require
(
'./directive/h-on-touch'
))
.
directive
(
'hTooltip'
,
require
(
'./directive/h-tooltip'
))
.
directive
(
'hTooltip'
,
require
(
'./directive/h-tooltip'
))
.
directive
(
'markdown'
,
require
(
'./directive/markdown'
))
.
directive
(
'markdown'
,
require
(
'./directive/markdown'
))
.
directive
(
'sidebarTutorial'
,
require
(
'./directive/sidebar-tutorial'
).
directive
)
.
directive
(
'searchInput'
,
require
(
'./directive/search-input'
))
.
directive
(
'searchInput'
,
require
(
'./directive/search-input'
))
.
directive
(
'selectionTabs'
,
require
(
'./directive/selection-tabs'
))
.
directive
(
'selectionTabs'
,
require
(
'./directive/selection-tabs'
))
.
directive
(
'sortDropdown'
,
require
(
'./directive/sort-dropdown'
))
.
directive
(
'sortDropdown'
,
require
(
'./directive/sort-dropdown'
))
...
...
src/sidebar/directive/sidebar-tutorial.js
View file @
2cbf1969
...
@@ -17,21 +17,16 @@ function SidebarTutorialController(session) {
...
@@ -17,21 +17,16 @@ function SidebarTutorialController(session) {
}
}
/**
/**
* @ngdoc directive
* @name sidebarTutorial
* @name sidebarTutorial
* @description Displays a short tutorial in the sidebar.
* @description Displays a short tutorial in the sidebar.
*/
*/
// @ngInject
// @ngInject
module
.
exports
=
{
module
.
exports
=
{
directive
:
function
()
{
component
:
{
return
{
controller
:
SidebarTutorialController
,
bindToController
:
true
,
controllerAs
:
'vm'
,
controller
:
SidebarTutorialController
,
bindings
:
{},
controllerAs
:
'vm'
,
template
:
require
(
'../templates/sidebar_tutorial.html'
),
restrict
:
'E'
,
scope
:
{},
template
:
require
(
'../templates/sidebar_tutorial.html'
),
};
},
},
Controller
:
SidebarTutorialController
,
Controller
:
SidebarTutorialController
,
};
};
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