Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc821617

Browse files
edcarrollmcosta74
authored andcommitted
fix(popup): Fixed globals being overidden on popup demo page (#258)
Closes#249
1 parent650a6de commitc821617

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

‎demo/src/app/pages/modules/popup/popup.page.ts‎

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{Component,Input,OnInit,OnDestroy}from"@angular/core";
1+
import{Component,Input}from"@angular/core";
22
import{ApiDefinition}from"../../../components/api/api.component";
33
import{SuiPopupConfig}from"ng2-semantic-ui";
44

@@ -173,33 +173,22 @@ export class MyComponent {
173173

174174
@Component({
175175
selector:"example-popup-standard",
176-
template:exampleStandardTemplate
176+
template:exampleStandardTemplate,
177+
providers:[SuiPopupConfig]
177178
})
178-
exportclassPopupExampleStandardimplementsOnInit{
179-
// We only need to do this once.
180-
private_config:SuiPopupConfig;
181-
182-
constructor(publicpopupConfig:SuiPopupConfig){
183-
this._config=newSuiPopupConfig();
184-
185-
Object.assign(this._config,popupConfig);
186-
Object.assign(this.popupConfig,newSuiPopupConfig());
187-
}
188-
189-
publicngOnInit():void{
190-
Object.assign(this.popupConfig,this._config);
191-
}
192-
}
179+
exportclassPopupExampleStandard{}
193180

194181
@Component({
195182
selector:"example-popup-template",
196-
template:exampleTemplateTemplate
183+
template:exampleTemplateTemplate,
184+
providers:[SuiPopupConfig]
197185
})
198186
exportclassPopupExampleTemplate{}
199187

200188
@Component({
201189
selector:"example-popup-placement",
202-
template:examplePlacementTemplate
190+
template:examplePlacementTemplate,
191+
providers:[SuiPopupConfig]
203192
})
204193
exportclassPopupExamplePlacement{
205194
@Input()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp