-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1318 from valor-software/feat-new-component-loader
feat(components): new component loader provided
- Loading branch information
Showing
50 changed files
with
2,208 additions
and
589 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,6 @@ testem.log | |
#System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
src/**/*.js | ||
src/**/*.map |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1 @@ | ||
Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults. | ||
|
||
Base specifications: [bootstrap 3](http://getbootstrap.com/javascript/#modals) or [bootstrap 4](http://v4-alpha.getbootstrap.com/components/modal/) | ||
|
||
### **Important notes**: | ||
- Don't forget to add `hack` to your application root component ([why?](https://github.com/angular/angular/issues/6446#issuecomment-173459525)) | ||
|
||
```typescript | ||
import { Component, ViewContainerRef } from '@angular/core'; | ||
|
||
@Component({selector:'app-root'}) | ||
class AppRoot { | ||
protected viewContainerRef: ViewContainerRef; | ||
|
||
public constructor(viewContainerRef:ViewContainerRef) { | ||
// You need this small hack in order to catch application root view container ref | ||
this.viewContainerRef = viewContainerRef; | ||
} | ||
} | ||
``` |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
// Typings reference file, you can add your own global typings here | ||
// https://www.typescriptlang.org/docs/handbook/writing-declaration-files.html | ||
|
||
// tslint:disable | ||
declare const System: any; | ||
declare const ENV:string; | ||
// google code-prettify | ||
declare const PR:any; | ||
|
||
declare const require:any; | ||
declare const global:any; | ||
|
||
declare module jasmine { | ||
interface Matchers { | ||
toHaveCssClass(expected: any): boolean; | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// tslint:disable | ||
/** | ||
* @copyright Angular ng-bootstrap team | ||
*/ | ||
beforeEach(() => { | ||
jasmine.addMatchers({ | ||
toHaveCssClass(/*util, customEqualityTests*/) { | ||
return {compare: buildError(false), negativeCompare: buildError(true)}; | ||
|
||
function buildError(isNot) { | ||
return function (actual, className) { | ||
const orNot = isNot ? 'not ' : ''; | ||
return { | ||
pass: actual.classList.contains(className) === !isNot, | ||
message: `Expected ${actual.outerHTML} ${orNot} to contain the CSS class "${className}"` | ||
}; | ||
}; | ||
} | ||
} | ||
}); | ||
}); |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
// Typings reference file, you can add your own global typings here | ||
// https://www.typescriptlang.org/docs/handbook/writing-declaration-files.html | ||
|
||
// tslint:disable | ||
|
||
declare const System: any; | ||
declare const ENV:string; | ||
// google code-prettify | ||
declare const PR:any; | ||
|
||
declare const global:any; | ||
|
||
declare module jasmine { | ||
interface Matchers { | ||
toHaveCssClass(expected: any): boolean; | ||
} | ||
} |
Oops, something went wrong.