Default currency input no valueDefault currency input with centsDefault currency input integers only (no cents)Disabled default currency input integers only (no cents)Currency input with ng-change eventCurrency input with ngFocus eventCurrency input with ngBlur eventCurrency input with clearOnInitialFocus set to trueCurrency input with custom validation odd digits only
Currency input with custom validation Max 4 Chars (no-cents)
Currency input with min and max (between 1 and 1000)
If you can, use the declarative modal instead. It avoids the need for
`bind-html` and results in cleaner code in many cases.
$scope.openModal = () => {
wsModalService.open({
bodyString: 'Some text to put inside of the modal body.',
actionString: 'Confirm this action',
actionInProgressString: 'Confirming...',
dismissString: 'Cancel',
action: (cb) => {
// You may have an asynchronous AJAX call here. We'll simulate
// that with a timeout.
setTimeout(() => {
console.log('called after Confirm button is clicked');
cb();
}, 1000);
},
dismiss: () => {
console.log('called after Cancel link is clicked');
},
});
};
Expander
$scope.expanderExpanded = function (instanceId) {
console.log('OHAI', instanceId);
}
$scope.expanderCollapsed = function (instanceId) {
console.log('KTHXBAI', instanceId);
}
Whatever you want in the header.
Whatever you want in the body
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
feugiat lacinia orci faucibus dignissim. Donec pharetra, ipsum a
aliquam pharetra, felis libero ornare nunc, et egestas nisi nisi ac
metus.
Yo
OHAI
Whatever you want in the header.
Whatever you want in the body
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
feugiat lacinia orci faucibus dignissim. Donec pharetra, ipsum a
aliquam pharetra, felis libero ornare nunc, et egestas nisi nisi ac
metus.
Yo
OHAI
Signature Pad
$scope.saveSignature = function(data) {
console.log('What a fine looking signature you have!');
$scope.signatureData = data;
}
$scope.redoSignature = function() {
$scope.signatureData = null;
}
Card Loading Indicator
const vm = this;
vm.$onChanges = (changes) => {
if (changes.ready) {
_setShow(changes.ready.currentValue);
}
};
function _setShow(ready) {
vm.show = false;
$timeout(() => {
vm.show = ready;
}, vm.delay);
}
Hello, world!
Hello, world 2!
ready is: {{cardReadiness}}
Hello, world!
Hello, world 2!
Carousel
$scope.slideActivated = function (slideIndex) {
console.log('OHAI slide', slideIndex);
}
Date Picker
$scope.changingDate = new Date('Tue Jan 25 2017 00:00:00 GMT-0400 (EDT)');
let currentDateIsDefault = true;
$scope.changeDate = function() {
if (currentDateIsDefault) {
$scope.changingDate = new Date('Tue Jan 25 2017 00:00:00 GMT-0400 (EDT)');
}
else {
$scope.changingDate = new Date('Tue Dec 24 2017 00:00:00 GMT-0400 (EDT)');
}
currentDateIsDefault = !currentDateIsDefault;
}
Default settings
Default date, min and max dates, disabled dates
Date format, min and max years
Disable business days, first day of week
Editable input
Setting data with ngModel
Default settings
Default date, min and max dates, disabled dates
Date format, min and max years
Disable business days, first day of week
Editable input
Setting data with ngModel
Multiple Inputs
$scope.multipleInputCompleted = function (result) {
console.log('Multiple inputs form completed with ' + result);
}
$scope.multipleInputReadonly = false;