Skip to content

Instantly share code, notes, and snippets.

export function serveCordova(
options: CordovaServeBuilderSchema,
context: BuilderContext
): Observable<DevServerBuilderOutput> {
const { devServerTarget, port, host, ssl } = options;
const root = context.workspaceRoot;
const devServerTargetSpec = targetFromTargetString(devServerTarget);
async function setup() {
// Platform: android
// 74fdba8b327b2a13b4366dd141b52def96d4cb56
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Pure NG7 to NG8
$ ng update --force --verbose @angular/core @angular/cli
Locating potential npmrc files:
Trying '/Users/mhartington/n/etc/npmrc'...not found.
Trying '/Users/mhartington/.npmrc'...found.
Trying '/Users/.npmrc'...not found.
Trying '/Users/mhartington/.npmrc'...found.
Trying '/Users/mhartington/myNg7App/.npmrc'...not found.
Updating package.json with dependency @angular/language-service @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/compiler-cli @ "8.0.2" (was "7.2.15")...
#!/usr/bin/env node
const puppeteer = require('puppeteer');
const fs = require('fs');
const args = process.argv.slice(2);
const host = args[0] || 'http://127.0.0.1:8080';
const indexMatches = [
'.gz',
'.map',
'3rdpartylicenses.txt',
'ngsw-manifest.json',
import {
Component,
OnInit,
Input,
ViewChild,
ElementRef,
HostBinding
} from '@angular/core';
@Component({
function toTitleCase(str) {
return str.replace(
/\w\S*/g,
txt => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase()
);
}

Angular Router Deep Dive

The Angular Router is one of the most important libraries in an Angular application. Without it, apps would be single view/single context apps. With Angular Router, we can create rich apps that are linkable and have rich animations (when paired with Ionic of course). Let's look at the basics of the Angular Router and how we can configure it for Ionic apps.

A simple Route

For most apps, having some sort of route is often required. The most basic configuration looks a bit like this:

import { Injectable } from '@angular/core';
import { CanLoad, Router } from '@angular/router';
import { Storage } from '@ionic/storage';
@Injectable({
providedIn: 'root'
})
export class CheckTutorial implements CanLoad {
constructor(private storage: Storage, private router: Router) {}
canLoad() {
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
* file.
*
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
from os import path
from denite.source.base import Base
from denite.util import globruntime
from ..kind.command import Kind as Command
from itertools import filterfalse
class Source(Base):
def __init__(self, vim):