Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
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
ulakbus
ulakbus-ui
Commits
73ee4356
Commit
73ee4356
authored
May 12, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init - load dashboard view & controller & test
parent
eafc40c8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
5 deletions
+26
-5
app.js
app/app.js
+2
-2
dashboard.html
app/dashboard/dashboard.html
+6
-0
dashboard.js
app/dashboard/dashboard.js
+16
-0
index.html
app/index.html
+1
-2
login.js
app/login/login.js
+1
-1
No files found.
app/app.js
View file @
73ee4356
'use strict'
;
// Declare app level module which depends on views, and components
angular
.
module
(
'zaerp'
,
[
'ngRoute'
,
'zaerp.
login'
,
'zaerp.view2
'
,
'zaerp.version'
,
'schemaForm'
]).
angular
.
module
(
'zaerp'
,
[
'ngRoute'
,
'zaerp.
dashboard'
,
'zaerp.login
'
,
'zaerp.version'
,
'schemaForm'
]).
config
([
'$routeProvider'
,
function
(
$routeProvider
)
{
console
.
log
(
"redirect to login"
);
$routeProvider
.
otherwise
({
redirectTo
:
'/
view2
'
});
$routeProvider
.
otherwise
({
redirectTo
:
'/'
});
}]).
run
(
function
(
$rootScope
,
$location
)
{
$rootScope
.
$on
(
"$routeChangeStart"
,
function
(
event
,
next
,
current
)
{
...
...
app/dashboard/dashboard.html
View file @
73ee4356
<div
ng-app=
"zaerp.dashboard"
>
<div
class=
"starter-template"
ng-controller=
"DashCtrl"
>
<h1>
Main Dashboard
</h1>
{{ testData }}
</div>
</div>
\ No newline at end of file
app/dashboard/dashboard.js
View file @
73ee4356
/**
* Created by evren kutar on 12/05/15.
*/
'use strict'
;
// TODO: clean console log items
angular
.
module
(
'zaerp.dashboard'
,
[
'ngRoute'
])
.
config
([
'$routeProvider'
,
function
(
$routeProvider
)
{
$routeProvider
.
when
(
'/dashboard'
,
{
templateUrl
:
'dashboard/dashboard.html'
,
controller
:
'DashCtrl'
});
}])
.
controller
(
'DashCtrl'
,
function
(
$scope
)
{
$scope
.
testData
=
"<h1>This is main Dashboard</h1>"
;
});
\ No newline at end of file
app/index.html
View file @
73ee4356
...
...
@@ -24,7 +24,6 @@
<div
class=
"container"
>
<ul
class=
"menu"
>
<li><a
href=
"#/login"
>
login
</a></li>
<li><a
href=
"#/view2"
>
view2
</a></li>
</ul>
<!--[if lt IE 7]>
...
...
@@ -53,7 +52,7 @@
<script
src=
"app.js"
></script>
<script
src=
"login/login.js"
></script>
<script
src=
"
view2/view2
.js"
></script>
<script
src=
"
dashboard/dashboard
.js"
></script>
<script
src=
"components/version/version.js"
></script>
<script
src=
"components/version/version-directive.js"
></script>
<script
src=
"components/version/interpolate-filter.js"
></script>
...
...
app/login/login.js
View file @
73ee4356
...
...
@@ -62,7 +62,7 @@ angular.module('zaerp.login', ['ngRoute', 'schemaForm'])
console
.
log
(
form
);
if
(
form
.
$valid
){
$rootScope
.
loggedInUser
=
true
;
$location
.
path
(
"/
view2
"
);
$location
.
path
(
"/
dashboard
"
);
//$http.post('http://127.0.0.1:8003/#/login', form.email).
// success(function(data, status, headers, config){
// console.log(data);
...
...
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