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-header> | |
<ion-navbar> | |
<ion-title> | |
Ionic Blank | |
</ion-title> | |
</ion-navbar> | |
</ion-header> | |
<ion-content> | |
<ion-item> |
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
<Panel ux:Class="Predavaci"> | |
<JavaScript> | |
var Observable = require("FuseJS/Observable"); | |
var data = Observable(); | |
fetch('http://nikola-breznjak.com/_testings/mecoders.json') | |
.then(function(response) { return response.json(); }) |
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({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
title = 'app works!'; |
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
/* tslint:disable:no-unused-variable */ | |
import { TestBed, async } from '@angular/core/testing'; | |
import { AppComponent } from './app.component'; | |
describe('App: GiphyA2', () => { | |
beforeEach(() => { | |
TestBed.configureTestingModule({ | |
declarations: [ | |
AppComponent |
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 { bootstrap } from '@angular/platform-browser-dynamic'; | |
import { enableProdMode } from '@angular/core'; | |
import { HTTP_PROVIDERS } from '@angular/http'; | |
import { AppComponent, environment } from './app/'; | |
if (environment.production) { | |
enableProdMode(); | |
} | |
bootstrap(AppComponent, [HTTP_PROVIDERS]); |
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'] | |
}) |
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'] | |
}) |
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
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
<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> |
NewerOlder