github-api-widget
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -106,3 +106,3 @@ (function (global, factory) { | ||
selector: 'github-api-error', | ||
template: "<div class=\"error\">\n <h2>Oops!</h2>\n <img src=\"./../../../../lib/assets/img/error.png\" width=\"10%\"/>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>" | ||
template: "<div class=\"error\">\n <h2>Oops!</h2>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>" | ||
}] } | ||
@@ -109,0 +109,0 @@ ]; |
@@ -1,2 +0,2 @@ | ||
!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/forms"),require("@angular/platform-browser"),require("@angular/common"),require("rxjs"),require("proyecto-1b-api-github"),require("@angular/core")):"function"==typeof define&&define.amd?define("github-api-widget",["exports","@angular/forms","@angular/platform-browser","@angular/common","rxjs","proyecto-1b-api-github","@angular/core"],e):e(r["github-api-widget"]={},r.ng.forms,r.ng.platformBrowser,r.ng.common,r.rxjs,r.api,r.ng.core)}(this,function(r,e,n,o,t,s,i){"use strict";var u=function(){function r(){this.error=!1,this.user=null}return r.prototype.searchUser=function(r){var e=this;console.log(r.keyCode);var n=this.search;console.log(n),13===r.keyCode&&(""===n||n===undefined?(this.user=null,this.error=!0):s.obtenerDatosDeUsuario(n).then(function(r){r.login===undefined?(console.log("no data"),e.error=!0,e.user=null):(console.log(r),e.user=r,e.error=!1)})["catch"](function(r){return console.log(r),console.log("error"),e.user=null,e.error=!0,t.EMPTY}))},r.decorators=[{type:i.Component,args:[{selector:"github-api-search-user",template:'\n<input (keydown)="searchUser($event)" [(ngModel)]="search" placeholder="GitHub username">\n\n<github-api-user *ngIf="user"\n [user]="user"></github-api-user>\n\n<github-api-error *ngIf="error"></github-api-error>'}]}],r}(),a=function(){function r(){}return r.decorators=[{type:i.Component,args:[{selector:"github-api-user",template:'<div class="github-card user-card" *ngIf="user != undefined" >\n <div class="header User"></div>\n <a class="avatar"\n [href]="\'https://github.com/\'+user.login">\n <img [src]="user.avatar_url+\'&s=80\'" [alt]="user.name" />\n </a>\n <div class="content">\n <h1>{{user.name}}</h1>\n <ul class="status">\n <li>\n <a [href]="\'https://github.com/\'+user.login+\'?tab=repositories\'">\n <strong>{{user.public_repos}}</strong>Repos\n </a>\n </li>\n <li>\n <a [href]="\'https://gist.github.com/\'+user.login">\n <strong>{{user.public_gists}}</strong>Gists\n </a>\n </li>\n <li>\n <a [href]="\'https://github.com/\'+user.login+\'/followers\'">\n <strong>{{user.followers}}</strong>Followers\n </a>\n </li>\n </ul>\n </div>\n</div>'}]}],r.propDecorators={user:[{type:i.Input}]},r}(),l=function(){function r(){}return r.prototype.ngOnInit=function(){},r.decorators=[{type:i.Component,args:[{selector:"github-api-error",template:'<div class="error">\n <h2>Oops!</h2>\n <img src="./../../../../lib/assets/img/error.png" width="10%"/>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>'}]}],r.ctorParameters=function(){return[]},r}(),c=[l,a,u],g=function(){function r(){}return r.decorators=[{type:i.NgModule,args:[{declarations:c,imports:[n.BrowserModule,o.CommonModule,e.FormsModule],exports:c}]}],r}();r.GithubApiModule=g,r.ɵa=l,r.ɵc=u,r.ɵb=a,Object.defineProperty(r,"__esModule",{value:!0})}); | ||
!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/forms"),require("@angular/platform-browser"),require("@angular/common"),require("rxjs"),require("proyecto-1b-api-github"),require("@angular/core")):"function"==typeof define&&define.amd?define("github-api-widget",["exports","@angular/forms","@angular/platform-browser","@angular/common","rxjs","proyecto-1b-api-github","@angular/core"],e):e(r["github-api-widget"]={},r.ng.forms,r.ng.platformBrowser,r.ng.common,r.rxjs,r.api,r.ng.core)}(this,function(r,e,n,o,t,s,u){"use strict";var i=function(){function r(){this.error=!1,this.user=null}return r.prototype.searchUser=function(r){var e=this;console.log(r.keyCode);var n=this.search;console.log(n),13===r.keyCode&&(""===n||n===undefined?(this.user=null,this.error=!0):s.obtenerDatosDeUsuario(n).then(function(r){r.login===undefined?(console.log("no data"),e.error=!0,e.user=null):(console.log(r),e.user=r,e.error=!1)})["catch"](function(r){return console.log(r),console.log("error"),e.user=null,e.error=!0,t.EMPTY}))},r.decorators=[{type:u.Component,args:[{selector:"github-api-search-user",template:'\n<input (keydown)="searchUser($event)" [(ngModel)]="search" placeholder="GitHub username">\n\n<github-api-user *ngIf="user"\n [user]="user"></github-api-user>\n\n<github-api-error *ngIf="error"></github-api-error>'}]}],r}(),a=function(){function r(){}return r.decorators=[{type:u.Component,args:[{selector:"github-api-user",template:'<div class="github-card user-card" *ngIf="user != undefined" >\n <div class="header User"></div>\n <a class="avatar"\n [href]="\'https://github.com/\'+user.login">\n <img [src]="user.avatar_url+\'&s=80\'" [alt]="user.name" />\n </a>\n <div class="content">\n <h1>{{user.name}}</h1>\n <ul class="status">\n <li>\n <a [href]="\'https://github.com/\'+user.login+\'?tab=repositories\'">\n <strong>{{user.public_repos}}</strong>Repos\n </a>\n </li>\n <li>\n <a [href]="\'https://gist.github.com/\'+user.login">\n <strong>{{user.public_gists}}</strong>Gists\n </a>\n </li>\n <li>\n <a [href]="\'https://github.com/\'+user.login+\'/followers\'">\n <strong>{{user.followers}}</strong>Followers\n </a>\n </li>\n </ul>\n </div>\n</div>'}]}],r.propDecorators={user:[{type:u.Input}]},r}(),l=function(){function r(){}return r.prototype.ngOnInit=function(){},r.decorators=[{type:u.Component,args:[{selector:"github-api-error",template:'<div class="error">\n <h2>Oops!</h2>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>'}]}],r.ctorParameters=function(){return[]},r}(),c=[l,a,i],g=function(){function r(){}return r.decorators=[{type:u.NgModule,args:[{declarations:c,imports:[n.BrowserModule,o.CommonModule,e.FormsModule],exports:c}]}],r}();r.GithubApiModule=g,r.ɵa=l,r.ɵc=i,r.ɵb=a,Object.defineProperty(r,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=github-api-widget.umd.min.js.map |
@@ -17,3 +17,3 @@ /** | ||
selector: 'github-api-error', | ||
template: "<div class=\"error\">\n <h2>Oops!</h2>\n <img src=\"./../../../../lib/assets/img/error.png\" width=\"10%\"/>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>" | ||
template: "<div class=\"error\">\n <h2>Oops!</h2>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>" | ||
}] } | ||
@@ -23,2 +23,2 @@ ]; | ||
ErrorComponent.ctorParameters = () => []; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vZ2l0aHViLWFwaS13aWRnZXQvIiwic291cmNlcyI6WyJsaWIvd2lkZ2V0cy9lcnJvci9lcnJvci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFNbEQsTUFBTSxPQUFPLGNBQWM7SUFFekIsZ0JBQWdCLENBQUM7Ozs7SUFFakIsUUFBUTtJQUNSLENBQUM7OztZQVRGLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsa0JBQWtCO2dCQUM1Qiw0TUFBcUM7YUFDdEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIE9uSW5pdCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdnaXRodWItYXBpLWVycm9yJyxcbiAgdGVtcGxhdGVVcmw6ICcuL2Vycm9yLmNvbXBvbmVudC5odG1sJ1xufSlcbmV4cG9ydCBjbGFzcyBFcnJvckNvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cblxuICBuZ09uSW5pdCgpIHtcbiAgfVxuXG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vZ2l0aHViLWFwaS13aWRnZXQvIiwic291cmNlcyI6WyJsaWIvd2lkZ2V0cy9lcnJvci9lcnJvci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFNbEQsTUFBTSxPQUFPLGNBQWM7SUFFekIsZ0JBQWdCLENBQUM7Ozs7SUFFakIsUUFBUTtJQUNSLENBQUM7OztZQVRGLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsa0JBQWtCO2dCQUM1QixxSUFBcUM7YUFDdEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIE9uSW5pdCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdnaXRodWItYXBpLWVycm9yJyxcbiAgdGVtcGxhdGVVcmw6ICcuL2Vycm9yLmNvbXBvbmVudC5odG1sJ1xufSlcbmV4cG9ydCBjbGFzcyBFcnJvckNvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cblxuICBuZ09uSW5pdCgpIHtcbiAgfVxuXG59XG4iXX0= |
@@ -20,3 +20,3 @@ /** | ||
selector: 'github-api-error', | ||
template: "<div class=\"error\">\n <h2>Oops!</h2>\n <img src=\"./../../../../lib/assets/img/error.png\" width=\"10%\"/>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>" | ||
template: "<div class=\"error\">\n <h2>Oops!</h2>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>" | ||
}] } | ||
@@ -29,2 +29,2 @@ ]; | ||
export { ErrorComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vZ2l0aHViLWFwaS13aWRnZXQvIiwic291cmNlcyI6WyJsaWIvd2lkZ2V0cy9lcnJvci9lcnJvci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFFbEQ7SUFNRTtJQUFnQixDQUFDOzs7O0lBRWpCLGlDQUFROzs7SUFBUjtJQUNBLENBQUM7O2dCQVRGLFNBQVMsU0FBQztvQkFDVCxRQUFRLEVBQUUsa0JBQWtCO29CQUM1Qiw0TUFBcUM7aUJBQ3RDOzs7O0lBUUQscUJBQUM7Q0FBQSxBQVhELElBV0M7U0FQWSxjQUFjIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBPbkluaXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnZ2l0aHViLWFwaS1lcnJvcicsXG4gIHRlbXBsYXRlVXJsOiAnLi9lcnJvci5jb21wb25lbnQuaHRtbCdcbn0pXG5leHBvcnQgY2xhc3MgRXJyb3JDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG5cbiAgbmdPbkluaXQoKSB7XG4gIH1cblxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vZ2l0aHViLWFwaS13aWRnZXQvIiwic291cmNlcyI6WyJsaWIvd2lkZ2V0cy9lcnJvci9lcnJvci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFFbEQ7SUFNRTtJQUFnQixDQUFDOzs7O0lBRWpCLGlDQUFROzs7SUFBUjtJQUNBLENBQUM7O2dCQVRGLFNBQVMsU0FBQztvQkFDVCxRQUFRLEVBQUUsa0JBQWtCO29CQUM1QixxSUFBcUM7aUJBQ3RDOzs7O0lBUUQscUJBQUM7Q0FBQSxBQVhELElBV0M7U0FQWSxjQUFjIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBPbkluaXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnZ2l0aHViLWFwaS1lcnJvcicsXG4gIHRlbXBsYXRlVXJsOiAnLi9lcnJvci5jb21wb25lbnQuaHRtbCdcbn0pXG5leHBvcnQgY2xhc3MgRXJyb3JDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG5cbiAgbmdPbkluaXQoKSB7XG4gIH1cblxufVxuIl19 |
@@ -95,3 +95,3 @@ import { FormsModule } from '@angular/forms'; | ||
selector: 'github-api-error', | ||
template: "<div class=\"error\">\n <h2>Oops!</h2>\n <img src=\"./../../../../lib/assets/img/error.png\" width=\"10%\"/>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>" | ||
template: "<div class=\"error\">\n <h2>Oops!</h2>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>" | ||
}] } | ||
@@ -98,0 +98,0 @@ ]; |
@@ -107,3 +107,3 @@ import { FormsModule } from '@angular/forms'; | ||
selector: 'github-api-error', | ||
template: "<div class=\"error\">\n <h2>Oops!</h2>\n <img src=\"./../../../../lib/assets/img/error.png\" width=\"10%\"/>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>" | ||
template: "<div class=\"error\">\n <h2>Oops!</h2>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>" | ||
}] } | ||
@@ -110,0 +110,0 @@ ]; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"GithubApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"}],"imports":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"BrowserModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":15,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":16,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"github-api-error","template":"<div class=\"error\">\n <h2>Oops!</h2>\n <img src=\"./../../../../lib/assets/img/error.png\" width=\"10%\"/>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"github-api-user","template":"<div class=\"github-card user-card\" *ngIf=\"user != undefined\" >\n <div class=\"header User\"></div>\n <a class=\"avatar\"\n [href]=\"'https://github.com/'+user.login\">\n <img [src]=\"user.avatar_url+'&s=80'\" [alt]=\"user.name\" />\n </a>\n <div class=\"content\">\n <h1>{{user.name}}</h1>\n <ul class=\"status\">\n <li>\n <a [href]=\"'https://github.com/'+user.login+'?tab=repositories'\">\n <strong>{{user.public_repos}}</strong>Repos\n </a>\n </li>\n <li>\n <a [href]=\"'https://gist.github.com/'+user.login\">\n <strong>{{user.public_gists}}</strong>Gists\n </a>\n </li>\n <li>\n <a [href]=\"'https://github.com/'+user.login+'/followers'\">\n <strong>{{user.followers}}</strong>Followers\n </a>\n </li>\n </ul>\n </div>\n</div>"}]}],"members":{"user":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"github-api-search-user","template":"\n<input (keydown)=\"searchUser($event)\" [(ngModel)]=\"search\" placeholder=\"GitHub username\">\n\n<github-api-user *ngIf=\"user\"\n [user]=\"user\"></github-api-user>\n\n<github-api-error *ngIf=\"error\"></github-api-error>"}]}],"members":{"searchUser":[{"__symbolic":"method"}]}}},"origins":{"GithubApiModule":"./lib/github-api.module","ɵa":"./lib/widgets/error/error.component","ɵb":"./lib/widgets/user/user.component","ɵc":"./lib/widgets/search-user/search-user.component"},"importAs":"github-api-widget"} | ||
{"__symbolic":"module","version":4,"metadata":{"GithubApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"}],"imports":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"BrowserModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":15,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":16,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"github-api-error","template":"<div class=\"error\">\n <h2>Oops!</h2>\n <b>\n User not found.\n </b>\n <p>Please try searching again.</p>\n</div>"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"github-api-user","template":"<div class=\"github-card user-card\" *ngIf=\"user != undefined\" >\n <div class=\"header User\"></div>\n <a class=\"avatar\"\n [href]=\"'https://github.com/'+user.login\">\n <img [src]=\"user.avatar_url+'&s=80'\" [alt]=\"user.name\" />\n </a>\n <div class=\"content\">\n <h1>{{user.name}}</h1>\n <ul class=\"status\">\n <li>\n <a [href]=\"'https://github.com/'+user.login+'?tab=repositories'\">\n <strong>{{user.public_repos}}</strong>Repos\n </a>\n </li>\n <li>\n <a [href]=\"'https://gist.github.com/'+user.login\">\n <strong>{{user.public_gists}}</strong>Gists\n </a>\n </li>\n <li>\n <a [href]=\"'https://github.com/'+user.login+'/followers'\">\n <strong>{{user.followers}}</strong>Followers\n </a>\n </li>\n </ul>\n </div>\n</div>"}]}],"members":{"user":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"github-api-search-user","template":"\n<input (keydown)=\"searchUser($event)\" [(ngModel)]=\"search\" placeholder=\"GitHub username\">\n\n<github-api-user *ngIf=\"user\"\n [user]=\"user\"></github-api-user>\n\n<github-api-error *ngIf=\"error\"></github-api-error>"}]}],"members":{"searchUser":[{"__symbolic":"method"}]}}},"origins":{"GithubApiModule":"./lib/github-api.module","ɵa":"./lib/widgets/error/error.component","ɵb":"./lib/widgets/user/user.component","ɵc":"./lib/widgets/search-user/search-user.component"},"importAs":"github-api-widget"} |
{ | ||
"name": "github-api-widget", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^7.0.0", |
@@ -77,15 +77,9 @@ # Github Api Widget | ||
In html template (github.component.html) you must add: | ||
``` | ||
<app-github searchUser="<user github you want to show info>"></app-github> | ||
``` | ||
```<app-github searchUser="<user github you want to show info>"></app-github>``` | ||
### Example: | ||
``` | ||
<app-github searchUser="mugan86"></app-github>``` | ||
```<app-github searchUser="mugan86"></app-github>``` | ||
In app.component.html template you must add | ||
``` | ||
<github-api-user *ngIf="user" | ||
```<github-api-user *ngIf="user" | ||
[user]="user"></github-api-user> | ||
<github-api-error *ngIf="error"></github-api-error> | ||
``` | ||
<github-api-error *ngIf="error"></github-api-error>``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
89704
84