This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="config.js"></script> | |
<script data-main="main" src="vendor/require.min.js"></script> | |
<!--(if target dist)> | |
<script> | |
require.config({ | |
urlArgs: '{{bustVersion}}' | |
}); | |
</script> | |
<!(endif)--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
targethtml: { | |
dist: { | |
options: { | |
curlyTags: { | |
bustVersion: '<%= grunt.template.today("yyyymmdd") %>' | |
} | |
}, | |
files: { | |
'dist/index.html': 'dev/index.html' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadPage (ctx, next) { | |
//show the home page if at the root path | |
if(ctx.path === '/' ) { | |
PageManager.loadPage('home'); | |
} else { | |
//load the page based on the selected route |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page.base('/backbone-router'); | |
page('/', loadPage); | |
page('/orders', loadPage, triggerPageChangeEvent); | |
page('/customers', loadPage, triggerPageChangeEvent); | |
page('/search', loadPage, triggerPageChangeEvent); | |
page('*', notFound); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.app.config([ | |
'$routeProvider', | |
'$controllerProvider', | |
'$compileProvider', | |
'$filterProvider', | |
'$provide', | |
function ($routeProvider, $controllerProvider, $compileProvider, $filterProvider, $provide) { | |
//router definition here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$routeProvider | |
.when('/login', { | |
templateUrl: 'components/login/partials/login.html', | |
resolve: { | |
load: ['$q', '$rootScope', function ($q, $rootScope) { | |
var deferred = $q.defer(); | |
require ([ | |
'components/login/controllers/loginController', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="../../js/jquery.min.js" /> | |
<script src="../../js/kendo.all.min.js" /> | |
<script> | |
$('document').ready(function(){ | |
var viewModel = kendo.observable({ | |
fname: "Sagar", | |
lname: "Ganatra", | |
fullname: function() { | |
return this.get("fname") + ' ' + this.get("lname"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="testView"> | |
Firstname: <input id="firstName" type="text" data-bind="value: fname"><br/> | |
Lastname: <input id="lastName" type="text" data-bind="value: lname"><br/> | |
Fullname: <input id="fullname" type="text" data-bind="value: fullname"><br/> | |
<input type="submit"> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<script src="../../js/jquery.min.js"></script> | |
<script src="../../js/kendo.all.min.js"></script> | |
<script> | |
$('document').ready(function() { | |
viewModel = kendo.observable({ | |
optionsData: [ | |
{optionValue:1, optionName: "test1"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<body> | |
<div id="uploadFile"> | |
<input type="file" id="userfile"> | |
<div id="messages"> | |
</div> | |
</div> | |
<script> | |
(function(){ |
OlderNewer