I hereby claim:
- I am neilsoult on github.
- I am nsoult (https://keybase.io/nsoult) on keybase.
- I have a public key ASBYlAZ8utb-NstsNlguustGuhtUsMT20aCNqlOiKtb1wwo
To claim this, I am signing this object:
angular.module('testApp', []). | |
directive('lazyLoad', ['$window', '$q', function ($window, $q) { | |
function load_script() { | |
var s = document.createElement('script'); // use global document since Angular's $document is weak | |
s.src = 'https://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize'; | |
document.body.appendChild(s); | |
} | |
function lazyLoadApi(key) { | |
var deferred = $q.defer(); | |
$window.initialize = function () { |
I hereby claim:
To claim this, I am signing this object:
const ngTools = require("@ngtools/webpack"); | |
const path = require('path'); | |
module.exports = (config) => { | |
// add pug loader into webpack module rules | |
config.module.rules = [ | |
{ | |
test: /.(pug|jade)$/, | |
exclude: /.(include|partial).(pug|jade)$/, |
import { Component, createNgModuleRef, Injector, Input, OnChanges, ViewChild } from '@angular/core'; | |
import { loadRemoteModule } from '@nrwl/angular/mfe'; | |
import { PluginDirective } from './plugin-directive'; | |
// plugin directive: | |
// import { Directive, ViewContainerRef } from '@angular/core'; | |
// @Directive({ selector: '[crxPlugin]' }) | |
// export class PluginDirective { | |
// constructor (public viewContainerRef: ViewContainerRef) { } |