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
<!-- this will cause both a production and debug version of the code to be built. in the event of | |
a client-side error, the user can specify ?debug=true on the URI as the query string and the | |
debug version of the code will be used such that an emulated stacktrace will be displayed. | |
This has the effect of us being able to see exactly on what lines of code the error is | |
occurring. | |
Additionally, the debug flag is used to dictate what type of error dialog is presented to the | |
user in the event of an exception being thrown. In production mode, only a simple dialog | |
with the exception error is displayed. In debug mode, a dialog is displayed with the | |
exception stacktrace (if available). --> |
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
define(['authorization'], function () { | |
'use strict'; | |
angular.module('app-controllers', []) | |
.controller('MainController', | |
['$scope', '$timeout', 'AuthorizationService', | |
function ($scope, $timeout, authorizationService) { | |
// stuff | |
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
package com.foo.bar.shared; | |
public interface DateFormatProvider | |
{ | |
public Date format(String pattern, String dateString); | |
} |
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
define(function () { | |
'use strict'; | |
angular.module('qualifier-directives', []) | |
.directive('qualifierStatistics', | |
function () { | |
function processStatistics($scope, mode) { | |
// sort the normalized statistics in decending order based on the count |
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
<html> | |
<head> | |
<!-- include angular --> | |
</head> | |
<body data-ng-app='app'> | |
<div data-ng-controller='MyController as MyController'> | |
<!-- bound once --> | |
Controller Loaded: {{ ::MyController.someModel.controllerLoaded }} | |
<hr/> | |
<!-- two-way binding --> |
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 IsolateFormDirective() { | |
return { | |
restrict: 'A', | |
require: '?form', | |
link: function link(scope, $element, attrs, formController) { | |
if (!formController) { | |
return; | |
} |
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
<div class="form-group" | |
data-ng-class="{'has-error': options.validation.errorExistsAndShouldBeVisible}"> | |
<label for="{{ ::id }}" class="control-label"> | |
{{ ::to.label }} | |
<span data-ng-if="::to.required" class="text-red">*</span> | |
</label> | |
<formly-transclude></formly-transclude> | |
<div class="my-messages" data-my-messages="options"></div> | |
</div> |
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
define(['angular-animate', | |
'angular-messages'], function() { | |
'use strict'; | |
var app = angular.module('my-module', [ | |
'ngRoute', | |
'ngAnimate', | |
'ngMessages']); | |
app.config(['$logProvider', '$routeProvider', 'DashboardConstants', InitializeRouteProvider]); | |
app.config(['$httpProvider', InitializeHttpProvider]); |
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
var app = angular.module('app', []); | |
app.service('MyHttpService', ['$http', MyHttpService]); | |
function MyHttpService($http) { | |
this.doHttpCall = function() { | |
return $http.get('/foo.json'); | |
}; | |
} | |
app.service('MyService', ['$q', MyService]); |
OlderNewer