Skip to content

Instantly share code, notes, and snippets.

View petebacondarwin's full-sized avatar

Pete Bacon Darwin petebacondarwin

View GitHub Profile
polyfills-es2017.11bc46ccab0394a024d2.js:1 A preload for 'https://next.angular.io/generated/navigation.json' is found, but is not used because the request headers do not match.
g @ polyfills-es2017.11bc46ccab0394a024d2.js:1
src_app_custom-elements_toc_toc_module_ts-es2017.1337522d0bd53e657011.js:1 Failed to load resource: the server responded with a status of 404 ()
main-es2017.b7522200ac5e9b2c76f8.js:1 ERROR Error: [DocViewer] Error preparing document 'guide/angular-compiler-options': ChunkLoadError: Loading chunk src_app_custom-elements_toc_toc_module_ts failed.
(error: https://next.angular.io/src_app_custom-elements_toc_toc_module_ts-es2017.1337522d0bd53e657011.js)
at Object.a.f.j (runtime-es2017.a003c870ae813ea3fd3e.js:1)
at runtime-es2017.a003c870ae813ea3fd3e.js:1
at Array.reduce (<anonymous>)
at Function.a.e (runtime-es2017.a003c870ae813ea3fd3e.js:1)
at loadChildren (main-es2017.b7522200ac5e9b2c76f8.js:1)
@petebacondarwin
petebacondarwin / gist:b645b4d374bd966f18ae008d56dde643
Created September 2, 2021 19:31
Cycles in common libraries
@alfresco/adf-core/esm2015/form/components/widgets/container/container.widget.js -> @alfresco/adf-core/esm2015/form/components/form-field/form-field.component.js -> @alfresco/adf-core/esm2015/form/services/form-rendering.service.js -> @alfresco/adf-core/esm2015/form/components/widgets/index.js -> @alfresco/adf-core/esm2015/form/components/widgets/container/container.widget.js
@alfresco/adf-core/esm2015/form/components/widgets/tabs/tabs.widget.js -> @alfresco/adf-core/esm2015/form/components/form-field/form-field.component.js -> @alfresco/adf-core/esm2015/form/services/form-rendering.service.js -> @alfresco/adf-core/esm2015/form/components/widgets/index.js -> @alfresco/adf-core/esm2015/form/components/widgets/tabs/tabs.widget.js
@covalent/core/esm2015/data-table/data-table.component.js -> @covalent/core/esm2015/data-table/data-table-column/data-table-column.component.js -> @covalent/core/esm2015/data-table/data-table.component.js
@delon/abc/esm2015/se/se-container.component.js -> @delon/abc/esm2015/se/se-title
@petebacondarwin
petebacondarwin / app,component.ts
Created January 5, 2017 16:16
VS Code - Angular Language Service - transitive exports bug
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<h1>
{{title | bang}}
</h1>
`,
styles: []
@petebacondarwin
petebacondarwin / results.txt
Created February 5, 2018 21:33
Unhandled Exception Trimming
======================
Firefox on Android
======================
something terrible has happened. oh no. oh no.
AppComponent@app.component.ts:31:29
createClass@core.umd.js:12200:20
createDirectiveInstance@core.umd.j
======================
Safari 11
======================

What is dgeni?

dgeni is a documentation generator developed by the Angular team. Ironically it lacks documentation right now, so we try to develop a very simple step-by-step-guide here, until a better documentation is available. Please share and fork this Gist.

dgeni is currently used in these project

Why should I use dgeni?

<!DOCTYPE html>
<html ng-app="roydor">
<head>
<meta charset="utf-8" />
<title>AngularJS test</title>
<script src="angular.js"></script>
</head>
<body>
import {Modal} from './interfaces'
export interface MyModal extends Modal {
new(message: string): this
}
///////////
// obviously this is contrived because you are unlikely to want a singleton modal instance
angular.module('foo').value('myModalInstance', new MyModal('some message'));
@petebacondarwin
petebacondarwin / angular.js
Created June 26, 2013 10:48
Dynamic Script Tag Test
/**
* @license AngularJS v1.0.7
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, document, undefined) {
'use strict';
////////////////////////////////////
angular.module('onlineModule',[]).factory('dataService', { ... });
angular.module('offlineModule',[]).factory('dataService', { ... });
var app = angular.module('myApp', ['onlineModule']); // onlineModule or offlineModule
app.service('x', function (dataService) { // $dataService could be onlineModule.dataService or offlineModule.dataService
// online or offline? we don't care!
});
app.service('y', function (dataService) {