This file contains hidden or 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($){ | |
| var alreadySupported = 'placeholder' in document.createElement('input'); | |
| function doPlaceholder(){ | |
| if(alreadySupported) return; | |
| var $this = $(this); | |
| if($this.data('placeholder-polyfill'))return; | |
| $this.data('placeholder-polyfill', true); | |
| if(!$this.is('[type="text"], [type="password"], [type="email"], textarea')) return; | |
| $this.wrap('<span style="position:relative" />'); |
This file contains hidden or 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
| export function mockDirective(...names) { | |
| return angular.mock.module(($compileProvider) => { | |
| names.forEach((name) => { | |
| $compileProvider.directive(name, () => { | |
| return { | |
| priority: 9999, | |
| terminal: true, | |
| restrict: 'EAC', | |
| template:`<mock-${dashCase(name)}></mock-${dashCase(name)}>`, | |
| replace: true |
This file contains hidden or 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, bundle } from 'ng-forward'; | |
| import { ComponentA } from './component-a'; | |
| import { ComponentB } from './component-b'; | |
| @Component({ | |
| selector: 'app', | |
| directives: [ ComponentA, ComponentB ] | |
| }) | |
| export class App { } |
This file contains hidden or 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.module('app', []); |
This file contains hidden or 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 { componentAModule } from './component-a'; | |
| angular.module('app', [componentAModule]); |
This file contains hidden or 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 { componentAModule } from './component-a'; | |
| angular.module('app', [componentAModule]); |
This file contains hidden or 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 { bundle } from 'ng-forward'; | |
| import { ComponentA } from './component-a'; | |
| // We can create a bundled module from ComponentA | |
| // You can then reference that module elsewhere for | |
| // non-converted components and services | |
| bundle('app', ComponentA); | |
This file contains hidden or 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 { bundle } from 'ng-forward'; | |
| import { ComponentA } from './component-a'; | |
| // We can create a bundled module from ComponentA | |
| // You can then reference that module elsewhere for | |
| // non-converted components and services | |
| bundle('app', ComponentA); |
This file contains hidden or 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 e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | |
| (function (global){ | |
| "use strict"; | |
| _dereq_(180); | |
| _dereq_(181); | |
| if (global._babelPolyfill) { | |
| throw new Error("only one instance of babel/polyfill is allowed"); |
This file contains hidden or 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 e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | |
| (function (global){ | |
| "use strict"; | |
| _dereq_(188); | |
| _dereq_(189); | |
| if (global._babelPolyfill) { | |
| throw new Error("only one instance of babel/polyfill is allowed"); |
OlderNewer