Skip to content

Instantly share code, notes, and snippets.

Avatar

Pete Bacon Darwin petebacondarwin

View GitHub Profile
View gist:ed6b9a3e7c8703d63617ac9cd27d9e33
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)
View gist:b645b4d374bd966f18ae008d56dde643
@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 Jan 5, 2017
VS Code - Angular Language Service - transitive exports bug
View app,component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<h1>
{{title | bang}}
</h1>
`,
styles: []
View ngRoute changes: 1.5 to now.md
@petebacondarwin
petebacondarwin / results.txt
Created Feb 5, 2018
Unhandled Exception Trimming
View results.txt
======================
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
======================
View getting-started-with-dgeni.md

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?

View index.html
<!DOCTYPE html>
<html ng-app="roydor">
<head>
<meta charset="utf-8" />
<title>AngularJS test</title>
<script src="angular.js"></script>
</head>
<body>
View angular-di.ts
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 Jun 26, 2013
Dynamic Script Tag Test
View angular.js
/**
* @license AngularJS v1.0.7
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, document, undefined) {
'use strict';
////////////////////////////////////
View app.js
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) {