alert('Hello Word')
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
cidade | Afonso Cláudio | |
---|---|---|
cidade | Água Doce do Norte | |
cidade | Águia Branca | |
cidade | Alegre | |
cidade | Alfredo Chaves | |
cidade | Alto Rio Novo | |
cidade | Anchieta | |
cidade | Apiacá | |
cidade | Aracruz | |
cidade | Atilio Vivacqua |
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
@Configuration | |
@EnableWebMvc | |
public class WebConfig extends WebMvcConfigurerAdapter { | |
@Override | |
public void addCorsMappings(CorsRegistry registry) { | |
registry.addMapping("/**") | |
.allowedOrigins("*") | |
.allowedMethods("PUT", "DELETE", "POST", "GET") | |
.allowCredentials(false) |
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() { | |
'use strict' | |
angular | |
.module('alabama', []) | |
.component('alabama', { | |
template: 'transclude.component.html', | |
controller: AlabamaComponentController, | |
transclude: { | |
'title': '?alabamaTitle', |
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() { | |
'use strict' | |
angular | |
.module('alabama', []) | |
.component('alabama', { | |
template: 'transclude.component.html', | |
controller: AlabamaComponentController, | |
transclude: true | |
}) |
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() { | |
'use strict' | |
angular | |
.module('alabama', []) | |
.component('alabama', { | |
template: '{{message}} {{otherMessage}}', | |
controller: AlabamaComponentController, | |
bindings: { | |
message: '@', |
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 promises = []; | |
for(var i = 0; i < 5; i++) { | |
var promise = $http.get('/data' + i); | |
promises.push(promise); | |
} | |
$q.all(promises).then(doSomethingAfterAllRequests) |
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() { | |
'use strict' | |
angular | |
.module('LocalStorageServices', []) | |
.factory('LocalStorageService', LocalStorageService) | |
LocalStorageService.$inject = ['$cookies'] | |
function LocalStorageService($cookies) { | |
var factory = { |
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
const gulp = require('gulp'), | |
concat = require('gulp-concat'), | |
stylus = require('gulp-stylus'), | |
browserSync = require('browser-sync'), | |
cssmin = require('gulp-cssmin'), | |
rename = require('gulp-rename'), | |
reload = browserSync.reload | |
const paths = { | |
src: { |
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
/** | |
* Slim container based on container of bootstrap | |
*/ | |
.container-slim { | |
padding-right: 15px; | |
padding-left: 15px; | |
margin-right: auto; | |
margin-left: auto; | |
} | |
@media (min-width: 768px) { |