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 angularInit(element, bootstrap) { | |
var appElement, | |
module, | |
config = {}; | |
// The element `element` has priority over any other element | |
forEach(ngAttrPrefixes, function(prefix) { | |
var name = prefix + 'app'; | |
if (!appElement && element.hasAttribute && element.hasAttribute(name)) { |
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 bootstrap(element, modules, config) { | |
if (!isObject(config)) config = {}; | |
var defaultConfig = { | |
strictDi: false | |
}; | |
config = extend(defaultConfig, config); | |
var doBootstrap = function() { | |
element = jqLite(element); | |
if (element.injector()) { |
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
// Directive method | |
module.directive(name, fn); | |
// Component method | |
module.component(name, options); |
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 routeLoaderCtrl ($rootScope) { | |
$rootScope.$on('$routeChangeStart', function (){ | |
this.routeLoading = true; | |
}.bind(this)); | |
$rootScope.$on('$routeChangeSuccess', function (){ | |
this.routeLoading = false; | |
}.bind(this)); | |
} |
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
//Directive syntax | |
function routeLoaderDirective () { | |
//directive definition | |
} | |
angular | |
.module('core') | |
.directive('routeLoader', routeLoaderDirective); | |
/*------------------------------------------------------------*/ | |
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 routeLoaderCtrl ($rootScope) { | |
$rootScope.$on('$routeChangeStart', function (){ | |
this.routeLoading = true; | |
}.bind(this)); | |
$rootScope.$on('$routeChangeSuccess', function (){ | |
this.routeLoading = false; | |
}.bind(this)); | |
} |
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
module Components.Navbar.Style exposing (..) | |
import Css exposing (..) | |
import Css.Elements exposing (..) | |
import Css.Namespace exposing (namespace) | |
import Html.CssHelpers exposing (withNamespace) | |
type CssIds | |
= NavbarContainer | |
| Header |
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
module Model exposing (..) | |
import Routing | |
import Components.Productos.Model as Products | |
type alias Model = | |
{ route: Routing.Route | |
, products: Products.Model | |
} |
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
module Components.Products.Model exposing (..) | |
type alias Product = | |
{id : Int | |
,image: String | |
,title: String | |
,description: String | |
,price: Int | |
,quality: String | |
} |
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
{ | |
"flight_type":"domestic", | |
"num_passengers":1, | |
"pickup_datetime":null, | |
"flight_datetime":"2017-04-12T08:30:00-07:00", | |
"search_id":"6d0da58c3afd4f59b1c71d353cdfa163", | |
"results":[ | |
{ | |
"result_id":"1b074ec7117f4291aa2278fecd057a88", | |
"total_price":{ |