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
``` | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title></title> | |
<link href="lib/ionic/css/ionic.css" rel="stylesheet"> | |
<link href="css/style.css" rel="stylesheet"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title></title> | |
<link href="lib/ionic/css/ionic.css" rel="stylesheet"> | |
<link href="css/style.css" rel="stylesheet"> | |
<!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above |
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
<h2>Welcome to GiphySearch</h2> |
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
<ion-tab title="Home" icon-off="ion-ios-home-outline" icon-on="ion-ios-home" href="#/tab/dash"> |
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
<!-- Search Tab --> | |
<ion-tab title="Search" icon-off="ion-ios-search" icon-on="ion-ios-search-strong" href="#/tab/search"> | |
<ion-nav-view name="tab-search"></ion-nav-view> | |
</ion-tab> |
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
{{^config.googleoauth}} | |
<form class="form-inline pull-right">{{#config.authentication}} | |
{{#loggedIn}} | |
<div class="dropdown"><button id="userDropDown" class="btn btn-info dropdown-toggle" type="button" data-toggle="dropdown"> | |
{{username}} | |
</button> | |
<ul class="dropdown-menu dropdown-menu-right"> | |
<li><a class="btn btn-info" href="{{config.base_url}}/logout">{{lang.login.logout}}</a></li> |
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-bottom">{{#config.googleoauth}} | |
<a class="zocial google" href="/auth/login">Sign in with Google</a> | |
{{/config.googleoauth}}{{^config.googleoauth}} | |
<form class="login-form" action="" method="post"> | |
<div class="form-group"><label class="sr-only" for="form-username">{{lang.login.username}}</label> | |
<input id="form-username" class="form-username form-control" tabindex="1" name="username" type="text" placeholder="{{lang.login.username}}" /></div> | |
<div class="form-group"><label class="sr-only" for="form-password">{{lang.login.password}}</label> | |
<input id="form-password" class="form-password form-control" tabindex="2" name="password" type="password" placeholder="{{lang.login.password}}" /></div> | |
<button class="btn" type="submit">{{lang.login.login}}</button> |
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 msg: string = "Hello, hello!"; | |
function myFunc (msg: string): string { | |
return 'I like to repeat what you said, therefore: ' + msg; | |
} | |
console.log(myFunc(msg)); |
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
performSearch(searchTerm: string): string { | |
console.log(`User unio: ${searchTerm}`); | |
return searchTerm; | |
} | |
it('should have a function performSearch', | |
inject([AppComponent], (app: AppComponent) => { | |
expect(app.performSearch).toBeTruthy(); | |
})); |
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
import { Component } from '@angular/core'; | |
import { Http, Response } from '@angular/http'; | |
@Component({ | |
moduleId: module.id, | |
selector: 'app-root', | |
templateUrl: 'app.component.html', | |
styleUrls: ['app.component.css'] | |
}) |
OlderNewer