Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| (function() { | |
| 'use strict'; | |
| angular | |
| .module('pub.posts.service', []) | |
| .factory('PostsService', PostsService); | |
| /** @ngInject */ | |
| function PostsService($http, $q, API) { |
| //html | |
| <!--Start of Modal --> | |
| <div class="modaal"> | |
| <input id="modaal__trigger" type="checkbox" /> | |
| <label class="{{className}}" for="modaal__trigger">{{buttonText}}</label> | |
| <div class="modaal__overlay" role="dialog" aria-labelledby="modaal__title" aria-describedby="modaal_desc"> | |
| <div class="modaal__wrap"> | |
| <label for="modaal__trigger">✖</label> | |
| <ng-transclude></ng-transclude> | |
| </div> |
| (function() { | |
| 'use strict'; | |
| let minutosTotais = 0; | |
| let segundosTotais = 0; | |
| let horasTotais = 0; | |
| let quantidePartidas = 0; | |
| $('.date-duration-duration > div').each(function(index, item){ | |
| quantidePartidas += 1; | |
| let data = item.textContent.split(':'), |
| INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('AUDI') | |
| INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('BMW') | |
| INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('CITROEN') | |
| INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('FIAT') | |
| INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('FORD') | |
| INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('CHEVROLET') | |
| INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('HONDA') | |
| INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('HYUNDAI') | |
| INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('KIA') | |
| INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('MERCEDES-BENZ') |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| function GeolocationSync(){ | |
| var existLatLong = Application.getPosition(); | |
| if(existLatLong === null){ | |
| $ionicLoading.show({ | |
| templateUrl: 'templates/components/sync.html', | |
| scope: $scope | |
| }); |
| function mapQuery($q) { | |
| return { | |
| require: ['esriFeatureLayer', '^esriMap', 'query'], | |
| scope:{ | |
| url: "=" | |
| }, | |
| controller: function ($scope, $element, $attrs) { | |
| var queryDeferred = $q.defer(); |
| angular.module('teste', []) | |
| .controller('OneCtrl', OneCtrl) | |
| .controller('SecondCtrl', SecondCtrl) | |
| .service('ServiceGlobal', ServiceGlobal); | |
| function OneCtrl($scope, ServiceGlobal){ | |
| $scope.data = {id: 1, nome: 'ola mundo'}; | |
| ServiceGlobal.addData($scope.data, true); | |
| } |
When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.
Raw Attribute Strings
<div my-directive="some string" another-param="another string"></div>| angular.module('ionicApp', ['ionic']) | |
| .controller('AppCtrl', function($scope, $timeout, $ionicLoading) { | |
| // Setup the loader | |
| $scope.loading = $ionicLoading.show({ | |
| content: '<i class="icon ion-loading-c"></i>', | |
| animation: 'fade-in', | |
| showBackdrop: false, | |
| maxWidth: 50, | |
| showDelay: 0 |